Skip to content

Commit 79b7ff3

Browse files
authored
Remove the check for provider URIs to allow dynamic provider configs (#57)
1 parent 63e6183 commit 79b7ff3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mimir/api_client.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,6 @@ type apiClient struct {
5151

5252
// Make a new api client for RESTful calls
5353
func NewAPIClient(opt *apiClientOpt) (*apiClient, error) {
54-
if opt.uri == "" && opt.rulerURI == "" && opt.alertmanagerURI == "" && opt.distributorURI == "" {
55-
return nil, fmt.Errorf("no provider URIs defined. Please set uri, or ruler_uri/alertmanager_uri/distributor_uri")
56-
}
57-
5854
/* Remove any trailing slashes since we will append
5955
to this URL with our own root-prefixed location */
6056
opt.uri = strings.TrimSuffix(opt.uri, "/")

0 commit comments

Comments
 (0)