Skip to content

Commit 943a659

Browse files
add hard codded timeout
Signed-off-by: Said Altury <Said.Altury@ibm.com>
1 parent f758e9d commit 943a659

File tree

1 file changed

+4
-1
lines changed
  • platform/fabricx/core/vault/queryservice

1 file changed

+4
-1
lines changed

platform/fabricx/core/vault/queryservice/query.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ func (s *RemoteQueryService) query(m map[driver.Namespace][]driver.PKey) (map[dr
7676
return nil, err
7777
}
7878

79-
ctx, cancel := context.WithTimeout(context.Background(), s.config.QueryTimeout)
79+
// ctx, cancel := context.WithTimeout(context.Background(), s.config.QueryTimeout)
80+
// TODO remove this line below
81+
ctx, cancel := context.WithTimeout(context.Background(),20*time.Second)
82+
8083
defer cancel()
8184

8285
now := time.Now()

0 commit comments

Comments
 (0)