Skip to content

Commit

Permalink
fix: conn pool
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Sep 23, 2024
1 parent b6be617 commit 2973d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (b *builder) Build() (c Client, err error) {
}, 1, b.connMax, b.connIdleTimeout, b.connMaxLifeDuration)
}
var connPoolWriter *grpcpool.Pool
if b.readerUri != "" {
if b.writerUri != "" {
connPoolWriter, err = grpcpool.New(func() (*grpc.ClientConn, error) {
return grpc.NewClient(b.writerUri, optsDial...)
}, 1, b.connMax, b.connIdleTimeout, b.connMaxLifeDuration)
Expand Down

0 comments on commit 2973d76

Please sign in to comment.