()
| 44 | ) |
| 45 | |
| 46 | func 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. |
no test coverage detected
searching dependent graphs…