From 008c7e9798c790f6be213a7e551ebdc48c0347e5 Mon Sep 17 00:00:00 2001 From: Ian Clarke Date: Fri, 7 May 2021 19:08:21 -0500 Subject: [PATCH] again --- build.gradle | 2 +- src/main/kotlin/kweb/shoebox/stores/DirectoryStore.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 9ebe910..1156ce3 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,5 @@ group 'kweb' -version '0.4.27' +version '0.4.28' buildscript { ext.kotlin_version = '1.5.0' diff --git a/src/main/kotlin/kweb/shoebox/stores/DirectoryStore.kt b/src/main/kotlin/kweb/shoebox/stores/DirectoryStore.kt index 1e8be81..2045c29 100644 --- a/src/main/kotlin/kweb/shoebox/stores/DirectoryStore.kt +++ b/src/main/kotlin/kweb/shoebox/stores/DirectoryStore.kt @@ -40,7 +40,7 @@ class DirectoryStore(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 {