mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-07 21:47:02 +09:00
13 lines
260 B
Go
13 lines
260 B
Go
package limiterproto
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/anyproto/any-sync/net/rpc/rpcerr"
|
|
)
|
|
|
|
var (
|
|
errGroup = rpcerr.ErrGroup(ErrCodes_ErrorOffset)
|
|
|
|
ErrLimitExceeded = errGroup.Register(errors.New("rate limit exceeded"), uint64(ErrCodes_RateLimitExceeded))
|
|
)
|