MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / IsCapacityError

Function IsCapacityError

internal/caches/errors.go:50–57  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

48}
49
50func IsCapacityError(err error) bool {
51 if err == nil {
52 return false
53 }
54
55 var capacityErr *CapacityError
56 return errors.As(err, &capacityErr)
57}
58
59func IsBusyError(err error) bool {
60 return err != nil && errors.Is(err, ErrServerIsBusy)

Callers 1

openWriterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected