Skip to content

Commit

Permalink
fix: address breaking changes caused by grafana-plugin-sdk-go v0.182.0
Browse files Browse the repository at this point in the history
  • Loading branch information
amlmtl committed Nov 7, 2023
1 parent 347c33a commit fe86f05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ var (
)

// NewSampleDatasource creates a new datasource instance.
func NewSampleDatasource(settings backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {
opts, err := settings.HTTPClientOptions()
func NewSampleDatasource(ctx context.Context, settings backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {
opts, err := settings.HTTPClientOptions(ctx)
if err != nil {
return nil, fmt.Errorf("http client options: %w", err)
}
Expand Down

0 comments on commit fe86f05

Please sign in to comment.