File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments