We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9481c6 commit fdaaed8Copy full SHA for fdaaed8
main.go
@@ -10,6 +10,7 @@ import (
10
"os"
11
"time"
12
13
+ "github.com/jackc/pgx/v5"
14
"github.com/jackc/pgx/v5/pgxpool"
15
"github.com/jaegertracing/jaeger/plugin/storage/grpc/shared"
16
"github.com/jaegertracing/jaeger/storage/dependencystore"
@@ -91,6 +92,8 @@ func ProvidePgxPool() any {
91
92
connectTimeoutDuration := time.Second * 10
93
pgxconfig.ConnConfig.ConnectTimeout = connectTimeoutDuration
94
95
+ pgxconfig.ConnConfig.DefaultQueryExecMode = pgx.QueryExecModeSimpleProtocol
96
+
97
ctx, cancelFn := context.WithTimeout(context.Background(), connectTimeoutDuration)
98
defer cancelFn()
99
0 commit comments