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

Method GetTimeout

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

Source from the content-addressed store, hash-verified

94}
95
96func (r *queryKeysRequest) GetTimeout() time.Duration {
97 if r.Timeout == 0 {
98 return 10 * time.Second
99 }
100 return time.Duration(r.Timeout) * time.Millisecond
101}
102
103func QueryKeys(req *http.Request, keyAPI api.ClientKeyAPI, device *userapi.Device) util.JSONResponse {
104 var r queryKeysRequest

Callers 1

QueryKeysFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected