Skip to content

Commit

Permalink
Rename 2 to Deprecated, fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaptic committed Oct 24, 2024
1 parent 4163dca commit 9040af0
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions cmd/soroban-rpc/internal/methods/get_version_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
})
}

0 comments on commit 9040af0

Please sign in to comment.