Skip to content

Commit

Permalink
Merge pull request #86 from anyproto/GO-1946-space-limit
Browse files Browse the repository at this point in the history
GO-1946 coordinator proto: space limit error
  • Loading branch information
cheggaaa authored Sep 21, 2023
2 parents f23bd44 + c0fa331 commit d157908
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 78 deletions.
160 changes: 82 additions & 78 deletions coordinator/coordinatorproto/coordinator.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions coordinator/coordinatorproto/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ var (
ErrSpaceIsDeleted = errGroup.Register(errors.New("space is deleted"), uint64(ErrorCodes_SpaceDeleted))
ErrSpaceDeletionPending = errGroup.Register(errors.New("space is set out for deletion"), uint64(ErrorCodes_SpaceDeletionPending))
ErrSpaceNotExists = errGroup.Register(errors.New("space not exists"), uint64(ErrorCodes_SpaceNotExists))
ErrSpaceLimitReached = errGroup.Register(errors.New("space limit reached"), uint64(ErrorCodes_SpaceLimitReached))
)
1 change: 1 addition & 0 deletions coordinator/coordinatorproto/protos/coordinator.proto
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ enum ErrorCodes {
SpaceDeletionPending = 2;
SpaceCreated = 3;
SpaceNotExists = 4;
SpaceLimitReached = 5;
ErrorOffset = 300;
}

Expand Down

0 comments on commit d157908

Please sign in to comment.