Skip to content

Commit

Permalink
change permission for peers
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Aug 31, 2023
1 parent bc87a7b commit 389fa41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nodebuilder/p2p/p2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (m *module) PubSubPeers(_ context.Context, topic string) ([]peer.ID, error)
type API struct {
Internal struct {
Info func(context.Context) (peer.AddrInfo, error) `perm:"public"`
Peers func(context.Context) ([]peer.ID, error) `perm:"read"`
Peers func(context.Context) ([]peer.ID, error) `perm:"admin"`
PeerInfo func(ctx context.Context, id peer.ID) (peer.AddrInfo, error) `perm:"admin"`
Connect func(ctx context.Context, pi peer.AddrInfo) error `perm:"admin"`
ClosePeer func(ctx context.Context, id peer.ID) error `perm:"admin"`
Expand Down

0 comments on commit 389fa41

Please sign in to comment.