Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Commit

Permalink
Update docstring for UpsertTag
Browse files Browse the repository at this point in the history
Co-Authored-By: vyzo <[email protected]>
  • Loading branch information
raulk and vyzo authored May 6, 2019
1 parent 9d8184f commit e845163
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ type ConnManager interface {
UntagPeer(p peer.ID, tag string)

// UpsertTag updates an existing tag or inserts a new one.
//
// The connection manager calls the upsert function supplying the current
// value of the tag (or zero if inexistent). The return value is used as
// the new value of the tag.
UpsertTag(p peer.ID, tag string, upsert func(int) int)

// GetTagInfo returns the metadata associated with the peer,
Expand Down

0 comments on commit e845163

Please sign in to comment.