Commit 2e8fee68 authored by ale's avatar ale

Increase the query RPC timeout

parent 33af5922
Pipeline #3650 passed with stages
in 2 minutes and 1 second
......@@ -15,7 +15,7 @@ import (
mdbc "git.autistici.org/ai3/tools/tabacco/metadb/client"
)
var rpcTimeout = 120 * time.Second
var rpcTimeout = 300 * time.Second
type queryCommand struct {
configPath string
......@@ -70,8 +70,8 @@ func (c *queryCommand) Execute(ctx context.Context, f *flag.FlagSet, args ...int
// Make the RPC.
rctx, cancel := context.WithTimeout(ctx, rpcTimeout)
defer cancel()
result, err := store.FindAtoms(rctx, req)
cancel()
if err != nil {
log.Printf("FindAtoms() error: %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment