Skip to content

Commit

Permalink
Merge pull request #38 from w-h-a/mem-store
Browse files Browse the repository at this point in the history
fix: ensure parity between implementations
  • Loading branch information
w-h-a committed Jul 8, 2024
2 parents 69aba72 + b58236e commit d405fdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions store/memory/memory.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ func (s *memoryStore) Read(key string, opts ...store.ReadOption) ([]*store.Recor

records := []*store.Record{}

if len(keys) == 0 {
return records, store.ErrRecordNotFound
}

for _, k := range keys {
record, err := s.read(k)
if err != nil {
Expand Down

0 comments on commit d405fdd

Please sign in to comment.