Compare commits
No commits in common. "cab18cd26bf3452469afd79d5c174ff47129da2b" and "351df7426f251a20e000169b0b1dd394314e197f" have entirely different histories.
cab18cd26b
...
351df7426f
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user