Alanxtl commented on code in PR #2906:
URL: https://github.com/apache/dubbo-go/pull/2906#discussion_r2119057467


##########
graceful_shutdown/shutdown.go:
##########
@@ -49,8 +50,8 @@ const (
 )
 
 var (
-       initOnce       sync.Once
-       compatShutdown *config.ShutdownConfig
+       initOnce sync.Once
+       shutdown *global.ShutdownConfig

Review Comment:
   the shutdown transfered in Init() is `*global.ShutdownConfig`, what i've 
done here is to reduce the convertation in line 66. And  the 
`compatShutdownConfig` used in line 66 is identically the  same as 
`compatShutdownConfig` declared in `compat.go`, which is redundant. So in this 
line I changed it to `*global.ShutdownConfig`, so that I can delete the 
redundant `compatShutdownConfig`
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to