Skip to content

Commit

Permalink
format - not sure why these?
Browse files Browse the repository at this point in the history
  • Loading branch information
rysweet committed Nov 16, 2024
1 parent 0c64a11 commit 093c109
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dotnet/src/Microsoft.AutoGen/Agents/AgentBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public List<string> Subscribe(string topic)
}
};
_context.SendMessageAsync(message).AsTask().Wait();

return new List<string> { topic };
}
public async Task StoreAsync(AgentState state, CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private async Task RunReadPump()
throw new InvalidOperationException($"Failed to register agent: '{message.RegisterAgentTypeResponse.Error}'.");
}
break;

case Message.MessageOneofCase.AddSubscriptionResponse:
if (!message.AddSubscriptionResponse.Success)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ public interface ISubscriptionsGrain : IGrainWithIntegerKey
ValueTask Subscribe(string agentType, string topic);
ValueTask Unsubscribe(string agentType, string topic);
ValueTask<Dictionary<string, List<string>>> GetSubscriptions(string agentType);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ private async ValueTask SendSubscriptionRequestAsync(CancellationToken cancellat
await Context.SendMessageAsync(request, cancellationToken).ConfigureAwait(false);
}
}
}
}

0 comments on commit 093c109

Please sign in to comment.