Skip to content

Commit

Permalink
chore: update client version and remove clientip of ConnectionSetupRe…
Browse files Browse the repository at this point in the history
…quest
  • Loading branch information
catcherwong committed Sep 10, 2021
1 parent 833d78d commit 767e879
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<PackageReference Include="ConfigureAwaitChecker.Analyzer" Version="5.*" PrivateAssets="All" />
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.*" PrivateAssets="All" Condition="'$(OS)' != 'Windows_NT'" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.*" PrivateAssets="All"/>
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.164">
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.354">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
2 changes: 2 additions & 0 deletions _stylecop/codeanalysis.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
<Rule Id="SA1503" Action="None" />
<!-- Code should not contain multiple blank lines in a row -->
<Rule Id="SA1507" Action="None" />
<!-- File is required to end with a single newline character-->
<Rule Id="SA1518" Action="None" />
<!-- Element must be documented -->
<Rule Id="SA1600" Action="None" />
<!-- Parameter documentation mus be in the right order -->
Expand Down
2 changes: 1 addition & 1 deletion build/version.props
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<Project>
<PropertyGroup>
<NugetVersion>1.2.0</NugetVersion>
<NugetVersion>1.2.1</NugetVersion>
</PropertyGroup>
</Project>
1 change: 0 additions & 1 deletion samples/App3/App3.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
<ItemGroup>
<ProjectReference Include="..\..\src\Nacos.AspNetCore\Nacos.AspNetCore.csproj" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion src/Nacos/V2/Common/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
public class Constants
{
public static string CLIENT_VERSION = "Nacos-CSharp-Client:v1.1.0";
public static string CLIENT_VERSION = "Nacos-CSharp-Client:v1.2.1";

public static int DATA_IN_BODY_VERSION = 204;

Expand Down
2 changes: 1 addition & 1 deletion src/Nacos/V2/Naming/Backups/FailoverReactor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public async Task RunFailoverFileRead()
{
var dataString = await file.ReadFileAsync().ConfigureAwait(false);

using (StringReader reader = new (dataString))
using (StringReader reader = new StringReader(dataString))
{
var json = reader.ReadLine();

Expand Down
1 change: 0 additions & 1 deletion src/Nacos/V2/Remote/GRpc/GrpcClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public override RemoteConnection ConnectToServer(RemoteServerInfo serverInfo)
ClientVersion = Constants.CLIENT_VERSION,
Labels = labels,
Abilities = clientAbilities,
ClientIp = Utils.NetUtils.LocalIP(),
Tenant = GetTenant()
};

Expand Down
3 changes: 0 additions & 3 deletions src/Nacos/V2/Remote/Requests/ConnectionSetupRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ public class ConnectionSetupRequest : CommonRequest
[Newtonsoft.Json.JsonProperty("tenant")]
public string Tenant { get; set; }

[Newtonsoft.Json.JsonProperty("clientIp")]
public string ClientIp { get; set; }

[Newtonsoft.Json.JsonProperty("labels")]
public Dictionary<string, string> Labels = new Dictionary<string, string>();

Expand Down

0 comments on commit 767e879

Please sign in to comment.