address net interface split review
This commit is contained in:
parent
b20581bac2
commit
d5c9cccf21
@ -51,8 +51,6 @@ type Net interface {
|
|||||||
NetBlockRemove(ctx context.Context, acl NetBlockList) error //perm:admin
|
NetBlockRemove(ctx context.Context, acl NetBlockList) error //perm:admin
|
||||||
NetBlockList(ctx context.Context) (NetBlockList, error) //perm:read
|
NetBlockList(ctx context.Context) (NetBlockList, error) //perm:read
|
||||||
|
|
||||||
// MethodGroup: Common
|
|
||||||
|
|
||||||
// ID returns peerID of libp2p node backing this API
|
// ID returns peerID of libp2p node backing this API
|
||||||
ID(context.Context) (peer.ID, error) //perm:read
|
ID(context.Context) (peer.ID, error) //perm:read
|
||||||
}
|
}
|
||||||
|
@ -43,7 +43,6 @@ func TestGetInternalStructs(t *testing.T) {
|
|||||||
require.Equal(t, 4, proxy.StrB.Internal.B)
|
require.Equal(t, 4, proxy.StrB.Internal.B)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func TestNestedInternalStructs(t *testing.T) {
|
func TestNestedInternalStructs(t *testing.T) {
|
||||||
var proxy StrC
|
var proxy StrC
|
||||||
|
|
||||||
@ -61,4 +60,3 @@ func TestNestedInternalStructs(t *testing.T) {
|
|||||||
|
|
||||||
require.Equal(t, 5, proxy.Internal.Internal.C)
|
require.Equal(t, 5, proxy.Internal.Internal.C)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user