From b09a644dac97fa8e037a16765728217ff3a1d057 Mon Sep 17 00:00:00 2001 From: Jeff Schroeder Date: Tue, 11 Jul 2023 15:58:24 +0000 Subject: [PATCH] node: fix a small tyop in the sui watcher Reported-By: @panoel --- node/pkg/watchers/sui/watcher.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/pkg/watchers/sui/watcher.go b/node/pkg/watchers/sui/watcher.go index a9a6a6ebdf..25163cc97c 100644 --- a/node/pkg/watchers/sui/watcher.go +++ b/node/pkg/watchers/sui/watcher.go @@ -505,7 +505,7 @@ func (e *Watcher) Run(ctx context.Context) error { func (e *Watcher) fixSuiWsURL(logger *zap.Logger) error { u, _ := url.Parse(e.suiWS) - // When the scheme is empty/nil or when the Host is empty but a scheme eis set + // When the scheme is empty/nil or when the Host is empty but a scheme is set if u == nil || u.Scheme == "" || (u.Scheme != "" && u.Host == "") { logger.Warn(fmt.Sprintf("DEPRECATED: Prefix --suiWS address with the url scheme e.g.: ws://%s or wss://%s", e.suiWS, e.suiWS)) u = &url.URL{Scheme: "ws", Host: e.suiWS}