Automatically retry requests
authorJacob Casper <dev@jacobcasper.com>
Thu, 16 Apr 2020 04:50:49 +0000 (23:50 -0500)
committerJacob Casper <dev@jacobcasper.com>
Thu, 16 Apr 2020 04:50:49 +0000 (23:50 -0500)
client/client.go

index f3c4a7c..394ee5f 100644 (file)
@@ -21,5 +21,6 @@ func Get() (*spotify.Client, error) {
        }
 
        client := spotify.Authenticator{}.NewClient(token)
+       client.AutoRetry = true
        return &client, nil
 }