terra: fix watcher ws argument

This commit is contained in:
Leo 2020-11-16 16:59:58 +01:00
parent 53c994b1ac
commit 7d617095e2
1 changed files with 3 additions and 3 deletions

View File

@ -52,11 +52,11 @@ func (e *BridgeWatcher) Run(ctx context.Context) error {
errC := make(chan error)
logger := supervisor.Logger(ctx)
logger.Info("connecting to", zap.String("url", e.urlLCD))
logger.Info("connecting to websocket", zap.String("url", e.urlWS))
c, _, err := websocket.DefaultDialer.DialContext(ctx, e.urlLCD, nil)
c, _, err := websocket.DefaultDialer.DialContext(ctx, e.urlWS, nil)
if err != nil {
return fmt.Errorf("socket dial failed: %w", err)
return fmt.Errorf("websocket dial failed: %w", err)
}
defer c.Close()