From 9040af08844e17697f9926a4a8cb8aaa11f4ad85 Mon Sep 17 00:00:00 2001 From: George Date: Thu, 24 Oct 2024 09:15:55 -0700 Subject: [PATCH] Rename 2 to Deprecated, fix linting --- .../internal/methods/get_version_info.go | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/cmd/soroban-rpc/internal/methods/get_version_info.go b/cmd/soroban-rpc/internal/methods/get_version_info.go index ab623005..cb73cb35 100644 --- a/cmd/soroban-rpc/internal/methods/get_version_info.go +++ b/cmd/soroban-rpc/internal/methods/get_version_info.go @@ -19,14 +19,14 @@ type GetVersionInfoResponse struct { BuildTimestamp string `json:"buildTimestamp"` CaptiveCoreVersion string `json:"captiveCoreVersion"` ProtocolVersion uint32 `json:"protocolVersion"` - // nolint:tagliatelle - CommitHash2 string `json:"commit_hash"` - // nolint:tagliatelle - BuildTimestamp2 string `json:"build_timestamp"` - // nolint:tagliatelle - CaptiveCoreVersion2 string `json:"captive_core_version"` - // nolint:tagliatelle - ProtocolVersion2 uint32 `json:"protocol_version"` + //nolint:tagliatelle + CommitHashDeprecated string `json:"commit_hash"` + //nolint:tagliatelle + BuildTimestampDeprecated string `json:"build_timestamp"` + //nolint:tagliatelle + CaptiveCoreVersionDeprecated string `json:"captive_core_version"` + //nolint:tagliatelle + ProtocolVersionDeprecated uint32 `json:"protocol_version"` } func NewGetVersionInfoHandler( @@ -45,15 +45,15 @@ func NewGetVersionInfoHandler( } return GetVersionInfoResponse{ - Version: config.Version, - CommitHash: config.CommitHash, - CommitHash2: config.CommitHash, - BuildTimestamp: config.BuildTimestamp, - BuildTimestamp2: config.BuildTimestamp, - CaptiveCoreVersion: captiveCoreVersion, - CaptiveCoreVersion2: captiveCoreVersion, - ProtocolVersion: protocolVersion, - ProtocolVersion2: protocolVersion, + Version: config.Version, + CommitHash: config.CommitHash, + CommitHashDeprecated: config.CommitHash, + BuildTimestamp: config.BuildTimestamp, + BuildTimestampDeprecated: config.BuildTimestamp, + CaptiveCoreVersion: captiveCoreVersion, + CaptiveCoreVersionDeprecated: captiveCoreVersion, + ProtocolVersion: protocolVersion, + ProtocolVersionDeprecated: protocolVersion, }, nil }) }