This commit is contained in:
tarsin committed 2023-05-26 15:44:55 +08:00
1 parent cc636bcae0
commit bf495336d9
1 file changed
+1 -1
@@ -41,7 +41,7 @@ fun SpiderInfo.write(file: UniFile) {
suspend fun SpiderInfo.saveToCache() {
runSuspendCatching {
spiderInfoCache.edit(gid.toString()) {
data.toFile().writeBytes(Cbor.encodeToByteArray(this))
data.toFile().writeBytes(Cbor.encodeToByteArray(this@saveToCache))
}
}.onFailure {
it.printStackTrace()