From cd6d9f461dc8f3fd527a41f982cb50b6d3d9ab01 Mon Sep 17 00:00:00 2001 From: Michael Landis Date: Thu, 7 Nov 2024 17:36:45 -0800 Subject: [PATCH] feat: upgrade protos and fix usings Upgrades to latest protos and adds using statements for `Momento.Protos.Common`. The previous version of `Momento.Protos` we used here pre-dated where we split several messages to `common.proto`. In order to isolate the changes, we upgrade the dependency and add the missing `using`s here.` --- src/Momento.Sdk/Internal/ScsDataClient.cs | 1 + src/Momento.Sdk/Internal/TopicGrpcManager.cs | 3 ++- src/Momento.Sdk/Momento.Sdk.csproj | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Momento.Sdk/Internal/ScsDataClient.cs b/src/Momento.Sdk/Internal/ScsDataClient.cs index 59e64383..091e2c2f 100644 --- a/src/Momento.Sdk/Internal/ScsDataClient.cs +++ b/src/Momento.Sdk/Internal/ScsDataClient.cs @@ -9,6 +9,7 @@ using Grpc.Core; using Microsoft.Extensions.Logging; using Momento.Protos.CacheClient; +using Momento.Protos.Common; using Momento.Sdk.Config; using Momento.Sdk.Exceptions; using Momento.Sdk.Internal.ExtensionMethods; diff --git a/src/Momento.Sdk/Internal/TopicGrpcManager.cs b/src/Momento.Sdk/Internal/TopicGrpcManager.cs index c3e4f8ad..1dc4d368 100644 --- a/src/Momento.Sdk/Internal/TopicGrpcManager.cs +++ b/src/Momento.Sdk/Internal/TopicGrpcManager.cs @@ -12,6 +12,7 @@ #endif using Microsoft.Extensions.Logging; using Momento.Protos.CacheClient.Pubsub; +using Momento.Protos.Common; using Momento.Sdk.Config; using Momento.Sdk.Config.Middleware; using Momento.Sdk.Config.Retry; @@ -69,7 +70,7 @@ public class TopicGrpcManager : GrpcManager { public readonly IPubsubClient Client; - internal TopicGrpcManager(ITopicConfiguration config, string authToken, string endpoint): base(config.TransportStrategy.GrpcConfig, config.LoggerFactory, authToken, endpoint, "TopicGrpcManager") + internal TopicGrpcManager(ITopicConfiguration config, string authToken, string endpoint) : base(config.TransportStrategy.GrpcConfig, config.LoggerFactory, authToken, endpoint, "TopicGrpcManager") { var middlewares = new List { diff --git a/src/Momento.Sdk/Momento.Sdk.csproj b/src/Momento.Sdk/Momento.Sdk.csproj index 14151f7e..060bd2a8 100644 --- a/src/Momento.Sdk/Momento.Sdk.csproj +++ b/src/Momento.Sdk/Momento.Sdk.csproj @@ -69,7 +69,7 @@ - +