diff --git a/release/go/spacemesh/v1/post_grpc.pb.go b/release/go/spacemesh/v1/post_grpc.pb.go index effc5b17..7ddf05ac 100644 --- a/release/go/spacemesh/v1/post_grpc.pb.go +++ b/release/go/spacemesh/v1/post_grpc.pb.go @@ -26,7 +26,8 @@ const ( // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type PostServiceClient interface { - // Register allows a dedicated PoST node to connect to the spacemesh node. + // Register is a bi-directional stream that allows a dedicated PoST node to connect to the spacemesh node. + // The node will send NodeRequets to PoST and the service will respond with ServiceResponses. Register(ctx context.Context, opts ...grpc.CallOption) (PostService_RegisterClient, error) } @@ -73,7 +74,8 @@ func (x *postServiceRegisterClient) Recv() (*NodeRequest, error) { // All implementations should embed UnimplementedPostServiceServer // for forward compatibility type PostServiceServer interface { - // Register allows a dedicated PoST node to connect to the spacemesh node. + // Register is a bi-directional stream that allows a dedicated PoST node to connect to the spacemesh node. + // The node will send NodeRequets to PoST and the service will respond with ServiceResponses. Register(PostService_RegisterServer) error } diff --git a/spacemesh/v1/post.proto b/spacemesh/v1/post.proto index 3ee7fbe5..bee9cedc 100644 --- a/spacemesh/v1/post.proto +++ b/spacemesh/v1/post.proto @@ -7,6 +7,7 @@ package spacemesh.v1; // PostService is used by dedicated PoST nodes to interact with the spacemesh // node. service PostService { - // Register is a bi-directional stream allows a dedicated PoST node to connect to the spacemesh node. + // Register is a bi-directional stream that allows a dedicated PoST node to connect to the spacemesh node. + // The node will send NodeRequets to PoST and the service will respond with ServiceResponses. rpc Register(stream ServiceResponse) returns (stream NodeRequest); }