Skip to content

Commit

Permalink
gotta include the sender
Browse files Browse the repository at this point in the history
  • Loading branch information
jie committed Nov 9, 2023
1 parent afc7016 commit c195274
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gossiper/gossiper_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ func Gossip_notification_handler(c *GossiperContext, w http.ResponseWriter, r *h
c.Counter1_lock.Unlock()
//fmt.Println(util.BLUE+"Received notification from "+notification.Sender+".", util.RESET)
if c.SearchPayload(notification.GossipID) == false {
msg, _ := json.Marshal(notification.GossipID)
notification.Sender = c.Gossiper_crypto_config.SelfID.String()
msg, _ := json.Marshal(notification)
c.Counter2_lock.Lock()
c.Total_traffic_sent += len(msg)
c.Counter2_lock.Unlock()
Expand Down

0 comments on commit c195274

Please sign in to comment.