diff options
author | 2024-08-06 18:53:22 -0700 | |
---|---|---|
committer | 2024-08-06 18:53:22 -0700 | |
commit | 825ba9d21d15e1f9b34c60bac68e42ee1fb125f9 (patch) | |
tree | c466380d15d672a4619a7e1c15f058d52123dbb4 /backend/cmd | |
parent | 961f9e0a76c3cfe9ae92ca8da0531790e0610b69 (diff) | |
download | ibd-trader-825ba9d21d15e1f9b34c60bac68e42ee1fb125f9.tar.gz ibd-trader-825ba9d21d15e1f9b34c60bac68e42ee1fb125f9.tar.zst ibd-trader-825ba9d21d15e1f9b34c60bac68e42ee1fb125f9.zip |
Improve selection of IBD transports
Diffstat (limited to 'backend/cmd')
-rw-r--r-- | backend/cmd/main.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/cmd/main.go b/backend/cmd/main.go index 16fc1ce..6b49980 100644 --- a/backend/cmd/main.go +++ b/backend/cmd/main.go @@ -154,10 +154,10 @@ func setupIBDClient(cfg *config.Config, db database.Database) (*ibd.Client, erro t := http.DefaultTransport.(*http.Transport).Clone() t.Proxy = http.ProxyURL(pUrl) transports := []transport.Transport{ - &http.Client{Transport: t}, // Default proxied transport - scrapfly.New(http.DefaultClient, cfg.IBD.APIKey), // Scrapfly transport + transport.NewStandardTransport(&http.Client{Transport: t}), // Default proxied transport + scrapfly.New(http.DefaultClient, cfg.IBD.APIKey), // Scrapfly transport } - client := ibd.NewClient(transports, db) + client := ibd.NewClient(db, transports...) return client, nil } |