Skip to content

Commit f440316

Browse files
authored
chore: add prometheus connection to http connection from model (#909)
1 parent 252d8b7 commit f440316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connection/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func CreateHTTPClient(ctx ConnectionContext, conn HTTPConnection) (*http.Client,
147147
func NewHTTPConnection(ctx ConnectionContext, conn models.Connection) (HTTPConnection, error) {
148148
var httpConn HTTPConnection
149149
switch conn.Type {
150-
case models.ConnectionTypeHTTP:
150+
case models.ConnectionTypeHTTP, models.ConnectionTypePrometheus:
151151
if err := httpConn.Username.Scan(conn.Username); err != nil {
152152
return httpConn, fmt.Errorf("error scanning username: %w", err)
153153
}

0 commit comments

Comments
 (0)