Close Redis connection on process exit
This commit is contained in:
@@ -56,6 +56,8 @@ func init() {
|
||||
}
|
||||
|
||||
func main() {
|
||||
defer r.Close()
|
||||
|
||||
instanceID, err := GetInstanceID()
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user