chore: remove unneeded success signal

This commit is contained in:
Richard Ramos 2022-12-05 16:03:09 -04:00 committed by RichΛrd
parent d63d2ca754
commit f25ac111db
2 changed files with 0 additions and 9 deletions

View File

@ -45,9 +45,6 @@ const (
// EventHistoryRequestFailed is triggered when requesting history messages fails
EventHistoryRequestFailed = "history.request.failed"
// EventHistoryRequestFailed is triggered when requesting history messages succeeds
EventHistoryRequestSuccess = "history.request.success"
// EventBackupPerformed is triggered when a backup has been performed
EventBackupPerformed = "backup.performed"
@ -158,10 +155,6 @@ func SendHistoricMessagesRequestFailed(requestID []byte, peerID peer.ID, err err
send(EventHistoryRequestFailed, HistoryMessagesSignal{RequestID: hex.EncodeToString(requestID), PeerID: peerID.String(), ErrorMsg: err.Error()})
}
func SendHistoricMessagesRequestSuccess(requestID []byte, peerID peer.ID) {
send(EventHistoryRequestSuccess, HistoryMessagesSignal{RequestID: hex.EncodeToString(requestID), PeerID: peerID.String()})
}
func SendHistoricMessagesRequestCompleted() {
send(EventHistoryRequestCompleted, HistoryMessagesSignal{})
}

View File

@ -1067,8 +1067,6 @@ func (w *Waku) Query(peerID peer.ID, topics []common.TopicType, from uint64, to
return nil, err
}
signal.SendHistoricMessagesRequestSuccess(requestID, peerID)
for _, msg := range result.Messages {
envelope := protocol.NewEnvelope(msg, msg.Timestamp, relay.DefaultWakuTopic)
w.logger.Info("received waku2 store message", zap.Any("envelopeHash", hexutil.Encode(envelope.Hash())))