From 223af0a7f078b8279fccbb21d8d1fcffc7a446f1 Mon Sep 17 00:00:00 2001 From: thilinajayanath Date: Sun, 10 Nov 2024 16:54:06 +0100 Subject: [PATCH] refactor: use http instead of websocket in shell by default --- internal/cmd/db_shell.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cmd/db_shell.go b/internal/cmd/db_shell.go index d18e6a51..89639c88 100644 --- a/internal/cmd/db_shell.go +++ b/internal/cmd/db_shell.go @@ -34,9 +34,9 @@ func init() { } func getURL(db *turso.Database, client *turso.Client, http bool) (string, error) { - scheme := "wss" - if http { - scheme = "https" + scheme := "https" + if !http { + scheme = "wss" } if instanceFlag == "" && locationFlag == "" {