MCPcopy Create free account
hub / github.com/pydio/cells / longGrpcCallTimeout

Function longGrpcCallTimeout

cmd/admin.go:46–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44)
45
46func longGrpcCallTimeout() grpc.Option {
47 var d time.Duration
48 var e error
49 d = 60 * time.Minute
50 if adminCmdGRPCTimeout != "" {
51 d, e = time.ParseDuration(adminCmdGRPCTimeout)
52 }
53 if e != nil {
54 fmt.Printf("Warning, cannot parse grpc timeout (%v), a golang duration is expected(10m, 2h, etc).\nUsing default 60m\n", e)
55 }
56 return grpc.WithCallTimeout(d)
57}
58
59// AdminCmd groups the data manipulation commands
60// The sub-commands are connecting via gRPC to a **running** Cells instance.

Calls 1

WithCallTimeoutFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…