node: fix a small tyop in the sui watcher

Reported-By: @panoel
This commit is contained in:
Jeff Schroeder 2023-07-11 15:58:24 +00:00
parent 8767ffadc0
commit b09a644dac
1 changed files with 1 additions and 1 deletions

View File

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