Skip to content

Commit

Permalink
Pass struct copy instead of reference.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Luis Lucas authored and iknite committed Dec 18, 2018
1 parent 29a911f commit c288741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/auditor/auditor.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func (t MembershipTask) Do() {
log.Infof("MembershipTask.Do(): Snapshot %v has been verified by QED", t.s.Snapshot)
}

func (t *MembershipTask) sendAlert(msg string) {
func (t MembershipTask) sendAlert(msg string) {
resp, err := http.Post(fmt.Sprintf("%s/alert", t.pubUrl), "application/json", bytes.NewBufferString(msg))
if err != nil {
log.Infof("Error saving batch in alertStore: %v", err)
Expand Down

0 comments on commit c288741

Please sign in to comment.