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