You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO adjust these strings to have links to documentation & centralise them
106
-
ifconfig.Integration==nil {
106
+
ifc.Integration==nil {
107
107
returnerrors.New("no http client api integration supplied, please see repo documentation for this client and go-api-http-client-integration and provide an implementation")
108
108
}
109
109
110
-
ifconfig.EnableConcurrencyManagement {
111
-
ifconfig.MaxConcurrentRequests<1 {
110
+
ifc.EnableConcurrencyManagement {
111
+
ifc.MaxConcurrentRequests<1 {
112
112
returnerrors.New("maximum concurrent requests cannot be less than 1")
113
113
}
114
114
}
115
115
116
-
ifconfig.CustomTimeout.Seconds() <0 {
116
+
ifc.CustomTimeout.Seconds() <0 {
117
117
returnerrors.New("timeout cannot be less than 0 seconds")
118
118
}
119
119
120
-
ifconfig.TokenRefreshBufferPeriod.Seconds() <0 {
120
+
ifc.TokenRefreshBufferPeriod.Seconds() <0 {
121
121
returnerrors.New("refresh buffer period cannot be less than 0 seconds")
122
122
}
123
123
124
-
ifconfig.RetryEligiableRequests {
125
-
ifconfig.TotalRetryDuration.Seconds() <0 {
124
+
ifc.RetryEligiableRequests {
125
+
ifc.TotalRetryDuration.Seconds() <0 {
126
126
returnerrors.New("total retry duration cannot be less than 0 seconds")
127
127
}
128
128
129
-
ifconfig.MaxRetryAttempts<0 {
129
+
ifc.MaxRetryAttempts<0 {
130
130
returnerrors.New("max retry cannot be less than 0")
131
131
}
132
132
133
133
}
134
134
135
-
ifconfig.FollowRedirects {
135
+
ifc.FollowRedirects {
136
136
ifDefaultMaxRedirects<1 {
137
137
returnerrors.New("max redirects cannot be less than 1")
0 commit comments