Skip to content

Commit

Permalink
node: fix a small tyop in the sui watcher
Browse files Browse the repository at this point in the history
Reported-By: @panoel
  • Loading branch information
SEJeff committed Jul 11, 2023
1 parent 8767ffa commit b09a644
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/watchers/sui/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit b09a644

Please sign in to comment.