优化代码

This commit is contained in:
刘祥超
2022-01-12 20:31:04 +08:00
parent 76c82b431a
commit 91fab59a18
23 changed files with 243 additions and 110 deletions

View File

@@ -482,11 +482,7 @@ func TestFileStorage_DecodeFile(t *testing.T) {
t.Fatal(err)
}
_, path := storage.keyPath("my-key")
item, err := storage.decodeFile(path)
if err != nil {
t.Fatal(err)
}
logs.PrintAsJSON(item, t)
t.Log(path)
}
func BenchmarkFileStorage_Read(b *testing.B) {