Skip to content

Commit c93e5d1

Browse files
committed
minor fixes
1 parent 3430667 commit c93e5d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exporter/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (c *Client) fetch(ctx context.Context, method, path string, params url.Valu
4343
u2.RawQuery = params.Encode()
4444
url := u2.String()
4545

46-
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
46+
req, err := http.NewRequestWithContext(ctx, method, url, nil)
4747
if err != nil {
4848
return nil, fmt.Errorf("failed to construct HTTP request: %w", err)
4949
}

exporter/collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func (c *PortalCollector) Collect(ch chan<- prometheus.Metric) {
163163
}
164164
}
165165

166-
func groupDesc(name, help string, extraLabel ...string) *prometheus.Desc {
166+
func groupDesc(name, help string) *prometheus.Desc {
167167
fqdn := prometheus.BuildFQName(namespace, "ap_group", name)
168168
return prometheus.NewDesc(fqdn, help, groupLabels, nil)
169169
}

0 commit comments

Comments
 (0)