Skip to content

Commit

Permalink
gs: Fix mutated event data causing panics (evtGatewayConnectionStats)
Browse files Browse the repository at this point in the history
  • Loading branch information
vlasebian committed Oct 10, 2024
1 parent b16c4c1 commit dfece98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/gatewayserver/gatewayserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ func (gs *GatewayServer) updateConnStats(ctx context.Context, conn connectionEnt
lastUpdate = time.Now()

stats, paths := conn.Stats()
registerGatewayConnectionStats(decoupledCtx, ids, stats)
registerGatewayConnectionStats(decoupledCtx, ids, ttnpb.Clone(stats))
if gs.statsRegistry == nil {
continue
}
Expand Down

0 comments on commit dfece98

Please sign in to comment.