Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MsgCount for Tigris #928

Merged
merged 22 commits into from
Jul 26, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Better docs
  • Loading branch information
Elena Grahovac committed Jul 21, 2022
commit 8696618f78c430558eb070a88ef5fbe2e4d5ab5f
2 changes: 1 addition & 1 deletion internal/handlers/tigris/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func (h *Handler) fetch(ctx context.Context, param fetchParam) ([]*types.Documen
if !errors.As(err, &tigErr) {
return nil, lazyerrors.Error(err)
}
//nolint:nosnakecase // Tigris' named their const that way
//nolint:nosnakecase // Tigris named their const that way
if tigErr.Code == tigris.Code_NOT_FOUND {
h.L.Debug(
"Collection doesn't exist, handling a case to deal with a non-existing collection (return empty list)",
Expand Down
2 changes: 1 addition & 1 deletion internal/handlers/tigris/msg_drop.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (h *Handler) MsgDrop(ctx context.Context, msg *wire.OpMsg) (*wire.OpMsg, er
if !errors.As(err, &tigErr) {
return nil, lazyerrors.Error(err)
}
//nolint:nosnakecase // Tigris' named their const that way
//nolint:nosnakecase // Tigris named their const that way
if tigErr.Code == tigris.Code_NOT_FOUND {
return nil, common.NewErrorMsg(common.ErrNamespaceNotFound, "ns not found")
}
Expand Down