Compare commits

..

No commits in common. "cab18cd26bf3452469afd79d5c174ff47129da2b" and "351df7426f251a20e000169b0b1dd394314e197f" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class DODB::CachedDataBase(V) < DODB::Storage(V)
return nil
end
def [](key : Int32) : V
@data[key].clone rescue raise MissingEntry.new(key)
@data[key] rescue raise MissingEntry.new(key)
end
def []=(index : Int32, value : V)

View File

@ -114,7 +114,7 @@ class DODB::Index(V) < DODB::Indexer(V)
end
def update(index : String, new_value : V)
key = get_key_on_fs index
_, key = get_with_key index
@storage[key] = new_value
end