From fa90bb91877767964e031db034a228e548a749d7 Mon Sep 17 00:00:00 2001 From: Philip O'Toole Date: Tue, 26 Dec 2023 19:54:26 -0500 Subject: [PATCH] Better log --- cmd/rqlited/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/rqlited/main.go b/cmd/rqlited/main.go index a37ffd5f..b3ca8cf4 100644 --- a/cmd/rqlited/main.go +++ b/cmd/rqlited/main.go @@ -557,10 +557,7 @@ func createCluster(cfg *Config, hasPeers bool, client *cluster.Client, str *stor } func networkCheckJoinAddrs(joinAddrs []string) error { - if len(joinAddrs) == 0 { - return nil - } - log.Println("checking that join addresses don't serve HTTP(S)") + log.Println("checking that any supplied join addresses don't serve HTTP(S)") if addr, ok := http.AnyServingHTTP(joinAddrs); ok { return fmt.Errorf("join address %s appears to be serving HTTP when it should be Raft", addr) }