Skip to content

Commit

Permalink
Fix wrong field being logged in EnvelopesMonitor
Browse files Browse the repository at this point in the history
  • Loading branch information
pedropombeiro committed Jan 23, 2020
1 parent dc31c81 commit 741f43c
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion cmd/node-canary/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ func verifyMailserverBehavior(mailserverNode *enode.Node) {

clientRPCClient := clientNode.RPCClient()

// TODO: Replace chat implementation with github.com/status-im/status-go-sdk
_, topic, _, err := joinPublicChat(clientWhisperService, clientRPCClient, *publicChannel)
if err != nil {
logger.Error("Failed to join public chat", "error", err)
Expand Down
2 changes: 1 addition & 1 deletion protocol/transport/waku/envelopes.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (m *EnvelopesMonitor) handleAcknowledgedBatch(event types.EnvelopeEvent) {
m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String()))
envelopeErrors, ok := event.Data.([]types.EnvelopeError)
if event.Data != nil && !ok {
m.logger.Error("received unexpected data in the the confirmation event", zap.String("batch", event.Batch.String()))
m.logger.Error("received unexpected data in the the confirmation event", zap.Any("data", event.Data))
}
failedEnvelopes := map[types.Hash]struct{}{}
for i := range envelopeErrors {
Expand Down
2 changes: 1 addition & 1 deletion protocol/transport/whisper/envelopes.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (m *EnvelopesMonitor) handleAcknowledgedBatch(event types.EnvelopeEvent) {
m.logger.Debug("received a confirmation", zap.String("batch", event.Batch.String()), zap.String("peer", event.Peer.String()))
envelopeErrors, ok := event.Data.([]types.EnvelopeError)
if event.Data != nil && !ok {
m.logger.Error("received unexpected data in the the confirmation event", zap.String("batch", event.Batch.String()))
m.logger.Error("received unexpected data in the the confirmation event", zap.Any("data", event.Data))
}
failedEnvelopes := map[types.Hash]struct{}{}
for i := range envelopeErrors {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 741f43c

Please sign in to comment.