Skip to content

Commit

Permalink
datastore: increase register scanner timeout
Browse files Browse the repository at this point in the history
1 second was too short to initialise with a remote Postgres under the debugger in VSCode

Signed-off-by: Mark Frost <[email protected]>
  • Loading branch information
frostmar committed Aug 30, 2023
1 parent 9ed6e65 commit e73acbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datastore/postgres/registerscanners.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ SELECT
var tctx context.Context
var done context.CancelFunc
for _, v := range vs {
tctx, done = context.WithTimeout(ctx, time.Second)
tctx, done = context.WithTimeout(ctx, 5*time.Second)
start := time.Now()
err = s.pool.QueryRow(tctx, exists, v.Name(), v.Version(), v.Kind()).
Scan(&ok)
Expand Down

0 comments on commit e73acbc

Please sign in to comment.