Skip to content

Commit

Permalink
Set metrics flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Nesze committed Jun 18, 2024
1 parent 2d9c155 commit 277852b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ func NewWithHTTPClient(secret string, client *http.Client, opts ...Opt) (*Castle
for _, opt := range opts {
opt(os)
}
return &Castle{client: client, apiSecret: secret}, nil
return &Castle{
client: client,
apiSecret: secret,
metricsEnabled: os.metricsEnabled,
}, nil
}

// Filter sends a filter request to castle.io
Expand Down

0 comments on commit 277852b

Please sign in to comment.