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 f3c4a7c0c1fc9f15ff167f792a8985b5ea706d9d..394ee5fe5c0b6bf26d4aae52ff6cf0b43260123d 100644 (file)
@@ -21,5 +21,6 @@ func Get() (*spotify.Client, error) {
        }
 
        client := spotify.Authenticator{}.NewClient(token)
+       client.AutoRetry = true
        return &client, nil
 }