Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(telemetry): fix crash due to telemetry #7575

Merged
merged 1 commit into from
Mar 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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