MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / set

Method set

pkg/auth/rights/cache.go:74–80  ·  view source on GitHub ↗
(rights *ttnpb.Rights, err error)

Source from the content-addressed store, hash-verified

72}
73
74func (c *cachedRes) set(rights *ttnpb.Rights, err error) {
75 c.rights, c.err = rights, err
76 if err == nil || (!errors.IsCanceled(err) && !errors.IsDeadlineExceeded(err)) {
77 c.time = now() // we only have a real result if the request wasn't canceled or timed out.
78 }
79 close(c.waitChan)
80}
81
82func (c *cachedRes) wait(ctx context.Context) error {
83 select {

Callers 12

setMethod · 0.45
AuthInfoMethod · 0.45
ApplicationRightsMethod · 0.45
ClientRightsMethod · 0.45
GatewayRightsMethod · 0.45
OrganizationRightsMethod · 0.45
UserRightsMethod · 0.45
applications.jsFile · 0.45
filterBestRSSIFunction · 0.45
retrieveTokenFunction · 0.45
error.jsFile · 0.45
useQueryStateFunction · 0.45

Calls 3

IsCanceledFunction · 0.92
IsDeadlineExceededFunction · 0.92
nowFunction · 0.85

Tested by

no test coverage detected