MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / IsTimeoutError

Function IsTimeoutError

base/error.go:277–287  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

275}
276
277func IsTimeoutError(err error) bool {
278 if err == nil {
279 return false
280 }
281
282 if errors.Is(err, gocb.ErrTimeout) || errors.Is(err, ErrTimeout) {
283 return true
284 }
285
286 return false
287}
288
289func IsXattrNotFoundError(err error) bool {
290 if unwrappedErr := pkgerrors.Cause(err); unwrappedErr == nil {

Callers 1

updateAndReturnDocMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected