Skip to content

Commit

Permalink
chore(dot/telemetry): remove system.network_state (ChainSafe#2078)
Browse files Browse the repository at this point in the history
Remove `system.network_state` telemetry message since it is not being
used by telemetry server
  • Loading branch information
kishansagathiya authored Dec 2, 2021
1 parent 8c58282 commit 9b85d9d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 67 deletions.
5 changes: 0 additions & 5 deletions dot/network/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,11 +397,6 @@ main:
if err != nil {
logger.Debugf("problem sending system.interval telemetry message: %s", err)
}

err = telemetry.GetInstance().SendMessage(telemetry.NewNetworkStateTM(s.host.h, s.Peers()))
if err != nil {
logger.Debugf("problem sending system.interval telemetry message: %s", err)
}
}
}
}
Expand Down
53 changes: 0 additions & 53 deletions dot/telemetry/network_state.go

This file was deleted.

11 changes: 2 additions & 9 deletions dot/telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ const (

preparedBlockForProposingMsg = "prepared_block_for_proposing"

systemConnectedMsg = "system.connected"
systemIntervalMsg = "system.interval"
systemNetworkStateMsg = "system.network_state"
systemConnectedMsg = "system.connected"
systemIntervalMsg = "system.interval"

txPoolImportMsg = "txpool.import"
)
Expand Down Expand Up @@ -185,12 +184,6 @@ type Message interface {
messageType() string
}

type peerInfo struct {
Roles byte `json:"roles"`
BestHash string `json:"bestHash"`
BestNumber uint64 `json:"bestNumber"`
}

// NoopHandler struct no op handling (ignoring) telemetry messages
type NoopHandler struct {
}
Expand Down

0 comments on commit 9b85d9d

Please sign in to comment.