Skip to content

Commit

Permalink
fix(telemetry): fix zero crash due to telemetry (#7575)
Browse files Browse the repository at this point in the history
  • Loading branch information
NamanJain8 authored and aman-bansal committed Mar 16, 2021
1 parent 96bf99e commit 89d7825
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions telemetry/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ func NewZero(ms *pb.MembershipState) *Telemetry {
// NewAlpha returns a Telemetry struct that holds information about the state of alpha server.
func NewAlpha(ms *pb.MembershipState) *Telemetry {
return &Telemetry{
Cid: ms.GetCid(),
Version: x.Version(),
OS: runtime.GOOS,
Arch: runtime.GOARCH,
Cid: ms.GetCid(),
Version: x.Version(),
OS: runtime.GOOS,
Arch: runtime.GOARCH,
EEFeaturesList: worker.GetEEFeaturesList(),
}
}

// Post reports the Telemetry to the stats server.
func (t *Telemetry) Post() error {
t.EEFeaturesList = worker.GetEEFeaturesList()
data, err := json.Marshal(t)
if err != nil {
return err
Expand Down

0 comments on commit 89d7825

Please sign in to comment.