Skip to content

Commit

Permalink
fix: update based on feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed Oct 11, 2024
1 parent 25cc82a commit 2588952
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions node/pkg/websocketfetcher/providers/orangex/orangex.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,11 @@ func (f *OrangeXFetcher) handleMessage(ctx context.Context, message map[string]a
log.Error().Str("Player", "OrangeX").Err(err).Msg("error in orangex.handleMessage")
return err
}

if feedData == nil {
return nil
}

f.FeedDataBuffer <- feedData
return nil
}
Expand Down
4 changes: 0 additions & 4 deletions node/pkg/wss/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ func (ws *WebsocketHelper) Write(ctx context.Context, message interface{}) error
return nil
}

func (ws *WebsocketHelper) RawByteWrite(ctx context.Context, message []byte) error {
return ws.Conn.Write(ctx, websocket.MessageBinary, message)
}

func (ws *WebsocketHelper) RawWrite(ctx context.Context, message string) error {
return ws.Conn.Write(ctx, websocket.MessageText, []byte(message))
}
Expand Down

0 comments on commit 2588952

Please sign in to comment.