Skip to content

Commit 3f2d307

Browse files
committed
[chore] address feedback from code review
1 parent dd2ded2 commit 3f2d307

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

config/configgrpc/configgrpc.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -484,13 +484,13 @@ func (gss *ServerConfig) getGrpcServerOptions(
484484
if gss.Keepalive.HasValue() {
485485
keepaliveConfig := gss.Keepalive.Get()
486486
if keepaliveConfig.ServerParameters.HasValue() {
487-
svrParams := keepaliveConfig.ServerParameters
487+
svrParams := keepaliveConfig.ServerParameters.Get()
488488
opts = append(opts, grpc.KeepaliveParams(keepalive.ServerParameters{
489-
MaxConnectionIdle: svrParams.Get().MaxConnectionIdle,
490-
MaxConnectionAge: svrParams.Get().MaxConnectionAge,
491-
MaxConnectionAgeGrace: svrParams.Get().MaxConnectionAgeGrace,
492-
Time: svrParams.Get().Time,
493-
Timeout: svrParams.Get().Timeout,
489+
MaxConnectionIdle: svrParams.MaxConnectionIdle,
490+
MaxConnectionAge: svrParams.MaxConnectionAge,
491+
MaxConnectionAgeGrace: svrParams.MaxConnectionAgeGrace,
492+
Time: svrParams.Time,
493+
Timeout: svrParams.Timeout,
494494
}))
495495
}
496496
// The default values referenced in the GRPC are set within the server, so this code doesn't need

0 commit comments

Comments
 (0)