From 6abd5d1564a8d3deb3f3f5250dedd5d176e83606 Mon Sep 17 00:00:00 2001 From: DingRui Yang Date: Thu, 11 May 2023 23:35:39 +0800 Subject: [PATCH] Update main.go --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index af277d5..8de1e2e 100644 --- a/main.go +++ b/main.go @@ -56,11 +56,10 @@ type apiStatus struct { // Init setup the apiKey func Init(config Config) *TMDb { - internalConfig := new(tmdbConfig) if config.UseProxy == true && len(config.Proxies) > 1 { internalConfig.useProxy = config.UseProxy internalConfig.proxies = prepareProxies(config.Proxies) - internalConfig.roundRobin = InitRoundRobin(len(internalConfig.proxies)) + internalConfig.roundRobin = InitRoundRobin(len(internalConfig.proxies) - 1) } return &TMDb{apiKey: config.APIKey}