summaryrefslogtreecommitdiff
path: root/common/src/main/kotlin/helpers.kt
diff options
context:
space:
mode:
authorAntoine A <>2024-03-12 20:48:56 +0100
committerAntoine A <>2024-03-13 21:19:30 +0100
commitcd6421f1c45e1a51415c19c1e28eed8a91c56008 (patch)
tree6ddfbfad5cd18a874e29ba9a95d0873387caf375 /common/src/main/kotlin/helpers.kt
parentc481ebac54b747ebb56b09c1430755bc4a70f3e5 (diff)
downloadlibeufin-cd6421f1c45e1a51415c19c1e28eed8a91c56008.tar.gz
libeufin-cd6421f1c45e1a51415c19c1e28eed8a91c56008.tar.bz2
libeufin-cd6421f1c45e1a51415c19c1e28eed8a91c56008.zip
Track outgoing transactions status
Diffstat (limited to 'common/src/main/kotlin/helpers.kt')
-rw-r--r--common/src/main/kotlin/helpers.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/src/main/kotlin/helpers.kt b/common/src/main/kotlin/helpers.kt
index cd803f64..2eba2d16 100644
--- a/common/src/main/kotlin/helpers.kt
+++ b/common/src/main/kotlin/helpers.kt
@@ -63,7 +63,7 @@ fun ByteArray.encodeBase64(): String = Base64.getEncoder().encodeToString(this)
/* ----- InputStream ----- */
/** Unzip an input stream and run [lambda] over each entry */
-fun InputStream.unzipEach(lambda: (String, InputStream) -> Unit) {
+inline fun InputStream.unzipEach(lambda: (String, InputStream) -> Unit) {
ZipInputStream(this).use { zip ->
while (true) {
val entry = zip.getNextEntry()