mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
dont return error on not found in seen read handler
This commit is contained in:
@@ -181,7 +181,9 @@ func (s *Seen) Read(ctx context.Context, req *pb.ReadRequest, rsp *pb.ReadRespon
|
||||
recs, err = store.Read(key, store.ReadPrefix())
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
if err == store.ErrNotFound {
|
||||
return nil
|
||||
} else if err != nil {
|
||||
logger.Errorf("Error with store: %v", err)
|
||||
return ErrStore
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user