diff options
author | Antoine A <> | 2024-03-12 20:48:56 +0100 |
---|---|---|
committer | Antoine A <> | 2024-03-13 21:19:30 +0100 |
commit | cd6421f1c45e1a51415c19c1e28eed8a91c56008 (patch) | |
tree | 6ddfbfad5cd18a874e29ba9a95d0873387caf375 /common/src/main/kotlin/helpers.kt | |
parent | c481ebac54b747ebb56b09c1430755bc4a70f3e5 (diff) | |
download | libeufin-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.kt | 2 |
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() |