Skip to content

Commit

Permalink
fix send subscription response
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Nov 12, 2024
1 parent 3b5d26e commit b7d070b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion dotnet/src/Microsoft.AutoGen/Agents/Services/Grpc/GrpcGateway.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,16 @@ private async ValueTask AddSubscriptionAsync(GrpcWorkerConnection connection, Ad
var agentType = request.Subscription.TypeSubscription.AgentType;
_subscriptionsByAgentType[agentType] = request.Subscription;
_subscriptionsByTopic[topic].Add(agentType);
var response = new AddSubscriptionResponse { RequestId = request.RequestId, Error = "", Success = true };
//var response = new AddSubscriptionResponse { RequestId = request.RequestId, Error = "", Success = true };
Message response = new()
{
AddSubscriptionResponse = new()
{
RequestId = request.RequestId,
Error = "",
Success = true
}
};
await connection.ResponseStream.WriteAsync(response).ConfigureAwait(false);
}
private async ValueTask RegisterAgentTypeAsync(GrpcWorkerConnection connection, RegisterAgentTypeRequest msg)
Expand Down

0 comments on commit b7d070b

Please sign in to comment.