mirror of
https://github.com/gravitl/netmaker.git
synced 2024-11-10 17:48:25 +08:00
bug squashin
This commit is contained in:
parent
696f83a40d
commit
18d1a72dd8
2 changed files with 5 additions and 5 deletions
|
@ -162,7 +162,7 @@ func (s *NodeServiceServer) GetExtPeers(ctx context.Context, req *nodepb.Object)
|
|||
if len(macAndNetwork) != 2 {
|
||||
return nil, errors.New("did not receive valid node id when fetching ext peers")
|
||||
}
|
||||
peers, err := GetExtPeersList(macAndNetwork[1], macAndNetwork[2])
|
||||
peers, err := GetExtPeersList(macAndNetwork[0], macAndNetwork[1])
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
8
main.go
8
main.go
|
@ -115,7 +115,6 @@ func runGRPC(wg *sync.WaitGroup) {
|
|||
|
||||
s := grpc.NewServer(
|
||||
authServerUnaryInterceptor(),
|
||||
authServerStreamInterceptor(),
|
||||
)
|
||||
// Create NodeService type
|
||||
srv := &controller.NodeServiceServer{}
|
||||
|
@ -154,6 +153,7 @@ func runGRPC(wg *sync.WaitGroup) {
|
|||
func authServerUnaryInterceptor() grpc.ServerOption {
|
||||
return grpc.UnaryInterceptor(controller.AuthServerUnaryInterceptor)
|
||||
}
|
||||
func authServerStreamInterceptor() grpc.ServerOption {
|
||||
return grpc.StreamInterceptor(controller.AuthServerStreamInterceptor)
|
||||
}
|
||||
|
||||
// func authServerStreamInterceptor() grpc.ServerOption {
|
||||
// return grpc.StreamInterceptor(controller.AuthServerStreamInterceptor)
|
||||
// }
|
||||
|
|
Loading…
Reference in a new issue