Browse Source

added run server update on grpc create

0xdcarns 3 năm trước cách đây
mục cha
commit
566a6df49a
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      controllers/node_grpc.go

+ 2 - 0
controllers/node_grpc.go

@@ -107,6 +107,8 @@ func (s *NodeServiceServer) CreateNode(ctx context.Context, req *nodepb.Object)
 		Type: nodepb.NODE_TYPE,
 	}
 
+	runServerUpdate(&node, true)
+
 	go func(node *models.Node) {
 		if node.UDPHolePunch == "yes" {
 			var currentServerNode, getErr = logic.GetNetworkServerLeader(node.Network)