From e910ee0475274e29f18f49b09c8454895ce1ba43 Mon Sep 17 00:00:00 2001 From: George Tankersley Date: Thu, 14 Feb 2019 00:26:01 +0000 Subject: [PATCH] frontend: increase GetBlockRange timeout to 30 seconds The previous shorter timeout was causing failures in testing and production. --- frontend/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/service.go b/frontend/service.go index 9c779be..7aedc32 100644 --- a/frontend/service.go +++ b/frontend/service.go @@ -91,7 +91,7 @@ func (s *SqlStreamer) GetBlockRange(span *walletrpc.BlockRange, resp walletrpc.C errChan := make(chan error) // TODO configure or stress-test this timeout - timeout, cancel := context.WithTimeout(resp.Context(), 1*time.Second) + timeout, cancel := context.WithTimeout(resp.Context(), 30*time.Second) defer cancel() go storage.GetBlockRange(timeout, s.db,