From 202ff6a67408264558662f250465152691cbc319 Mon Sep 17 00:00:00 2001 From: Shubham Prajapati Date: Thu, 16 May 2024 19:47:40 +0530 Subject: [PATCH] adding disconnection --- real_time_chat/real.time.chat.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/real_time_chat/real.time.chat.go b/real_time_chat/real.time.chat.go index 1fbb411..dbbf9a8 100644 --- a/real_time_chat/real.time.chat.go +++ b/real_time_chat/real.time.chat.go @@ -38,8 +38,7 @@ func RealtimeChatVoigerConnection() { if err != nil { log.Fatal(err) } - // defer c.Disconnect() - + defer c.Disconnect() dbName := os.Getenv("SUPABASE_DB_NAME") schema := os.Getenv("SCHEMA") table := os.Getenv("TABLE")