Close Redis connection on process exit

This commit is contained in:
Jacob Gunther
2022-09-06 02:09:23 -05:00
parent b832cf8584
commit d0c0567b0d

View File

@@ -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 {