From c1ece428005aa53e81f19c9ce31d1399ff6b576c Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Mon, 23 Oct 2023 17:05:47 +0800 Subject: [PATCH] chore: unnecessary use of fmt.Sprintf Signed-off-by: guoguangwu --- exp/tools/dump-ledger-state/main.go | 2 +- exp/tools/dump-orderbook/main.go | 2 +- tools/archive-reader/archive_reader.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/exp/tools/dump-ledger-state/main.go b/exp/tools/dump-ledger-state/main.go index 1523cbbacb..c7adad9d87 100644 --- a/exp/tools/dump-ledger-state/main.go +++ b/exp/tools/dump-ledger-state/main.go @@ -314,7 +314,7 @@ func archive(testnet bool) (*historyarchive.Archive, error) { } return historyarchive.Connect( - fmt.Sprintf("https://history.stellar.org/prd/core-live/core_live_001/"), + "https://history.stellar.org/prd/core-live/core_live_001/", historyarchive.ConnectOptions{ UserAgent: "dump-ledger-state", }, diff --git a/exp/tools/dump-orderbook/main.go b/exp/tools/dump-orderbook/main.go index ce54252c46..12b9220845 100644 --- a/exp/tools/dump-orderbook/main.go +++ b/exp/tools/dump-orderbook/main.go @@ -116,7 +116,7 @@ func archive(testnet bool) (*historyarchive.Archive, error) { } return historyarchive.Connect( - fmt.Sprintf("https://history.stellar.org/prd/core-live/core_live_001/"), + "https://history.stellar.org/prd/core-live/core_live_001/", historyarchive.ConnectOptions{ UserAgent: "dump-orderbook", }, diff --git a/tools/archive-reader/archive_reader.go b/tools/archive-reader/archive_reader.go index c5b03694d1..ef6729684f 100644 --- a/tools/archive-reader/archive_reader.go +++ b/tools/archive-reader/archive_reader.go @@ -63,7 +63,7 @@ func main() { func archive() (*historyarchive.Archive, error) { return historyarchive.Connect( - fmt.Sprintf("s3://history.stellar.org/prd/core-live/core_live_001/"), + "s3://history.stellar.org/prd/core-live/core_live_001/", historyarchive.ConnectOptions{ S3Region: "eu-west-1", UnsignedRequests: true,