frontend: increase GetBlockRange timeout to 30 seconds

The previous shorter timeout was causing failures in testing and
production.
This commit is contained in:
George Tankersley 2019-02-14 00:26:01 +00:00
parent d81f06e513
commit e910ee0475
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ func (s *SqlStreamer) GetBlockRange(span *walletrpc.BlockRange, resp walletrpc.C
errChan := make(chan error) errChan := make(chan error)
// TODO configure or stress-test this timeout // 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() defer cancel()
go storage.GetBlockRange(timeout, go storage.GetBlockRange(timeout,
s.db, s.db,