Skip to content

Commit

Permalink
feat: add getter for identity map
Browse files Browse the repository at this point in the history
  • Loading branch information
oykmnk committed Sep 7, 2019
1 parent 41968fd commit c6bae2b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ func (h *Handler) SetMatrixID(mxID string) {
h.matrixID = mxID
}

// Returns copy of handler's identity map ([multiaddress]=>[matrixID])
func (h *Handler) GetIdentityMap() map[string]string {
return h.identityMap
}

// Get list of topics **this** node is subscribed to
func (h *Handler) GetTopics() []string {
topics := h.pb.GetTopics()
Expand Down

0 comments on commit c6bae2b

Please sign in to comment.