MCPcopy Create free account
hub / github.com/daodst/chat / GetTimeout

Method GetTimeout

clientapi/routing/keys.go:134–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132}
133
134func (r *claimKeysRequest) GetTimeout() time.Duration {
135 if r.TimeoutMS == 0 {
136 return 10 * time.Second
137 }
138 return time.Duration(r.TimeoutMS) * time.Millisecond
139}
140
141func ClaimKeys(req *http.Request, keyAPI api.ClientKeyAPI) util.JSONResponse {
142 var r claimKeysRequest

Callers 1

ClaimKeysFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected