Skip to content

Commit

Permalink
fix: clean the peer snapshot map each time
Browse files Browse the repository at this point in the history
Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
  • Loading branch information
vincenzopalazzo committed Oct 5, 2022
1 parent 63e3351 commit 88b6194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/plugin/metric_one_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ type MetricOne struct {
// Storage reference
Storage db.PluginDatabase `json:"-"`

PeerSnapshot map[string]*glightning.Peer
PeerSnapshot map[string]*glightning.Peer `json:"-"`
}

func (instance MetricOne) MarshalJSON() ([]byte, error) {
Expand Down

0 comments on commit 88b6194

Please sign in to comment.