Skip to content

Commit 44c3985

Browse files
Handle ErrBlobNotFound error (#129)
1 parent 1b89957 commit 44c3985

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

proxy/grpc/server.go

+5
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ func (p *proxySrv) GetIds(ctx context.Context, request *pbda.GetIdsRequest) (*pb
4444
return nil, err
4545
}
4646

47+
// for ErrBlobNotFound cases
48+
if ret == nil {
49+
return &pbda.GetIdsResponse{Ids: []*pbda.ID{}, Timestamp: nil}, nil
50+
}
51+
4752
timestamp, err := types.TimestampProto(ret.Timestamp)
4853
if err != nil {
4954
return nil, err

0 commit comments

Comments
 (0)