Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 08f898f

Browse files
committed
MySQL backend does not use context.WithTimeout
Signed-off-by: Shlomi Noach <[email protected]>
1 parent 24a8bfa commit 08f898f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

go/db/db.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,7 @@ func ExecOrchestrator(query string, args ...interface{}) (sql.Result, error) {
382382
if err != nil {
383383
return nil, err
384384
}
385-
ctx, cancel := context.WithTimeout(context.Background(), time.Duration(config.Config.MySQLOrchestratorReadTimeoutSeconds)*time.Second)
386-
defer cancel()
385+
ctx := context.Background()
387386
res, err := sqlutils.ExecNoPrepare(ctx, db, query, args...)
388387
return res, err
389388
}

0 commit comments

Comments
 (0)