fix: implement code review suggestions
Address all feedback from PR review: - Lock granularity - Empty response handling - Shutdown race condition - Interface naming
This commit is contained in:
1 parent
3d605a4f53
commit
d09c64fcee
4 files changed
+26
-21
No files matched your search
@@ -211,10 +211,10 @@ func gatewayCmd() {
|
||||
<-sigChan
|
||||
|
||||
fmt.Println("\nShutting down...")
|
||||
cancel()
|
||||
if cp, ok := provider.(providers.SessionProvider); ok {
|
||||
if cp, ok := provider.(providers.StatefulProvider); ok {
|
||||
cp.Close()
|
||||
}
|
||||
cancel()
|
||||
healthServer.Stop(context.Background())
|
||||
deviceService.Stop()
|
||||
heartbeatService.Stop()
|
||||
|
||||
Reference in new issue
Block a user