Skip to content

Commit

Permalink
again
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed May 8, 2021
1 parent 9fedd2a commit 008c7e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'kweb'
version '0.4.27'
version '0.4.28'

buildscript {
ext.kotlin_version = '1.5.0'
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/kweb/shoebox/stores/DirectoryStore.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DirectoryStore<T : Any>(val directory: Path, private val kSerializer: KSer
throw IllegalStateException("File $filePath is a directory, not a file")
}
val o = filePath.inputStream().use {
ProtoBuf.decodeFromByteArray(kSerializer, it.readAllBytes())
ProtoBuf.decodeFromByteArray(kSerializer, it.readBytes())
}
CachedValueWithTime(o, Files.getLastModifiedTime(filePath).toInstant())
} else {
Expand Down

0 comments on commit 008c7e9

Please sign in to comment.