Skip to content

Commit

Permalink
Pass context to newDatasource as first arg
Browse files Browse the repository at this point in the history
  • Loading branch information
adamyeats committed Sep 21, 2023
1 parent 26f6b61 commit 4d5e6df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"context"
"os"

"github.com/grafana/clickhouse-datasource/pkg/plugin"
Expand All @@ -18,7 +19,7 @@ func main() {
}
}

func newDatasource(settings backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {
func newDatasource(ctx context.Context, settings backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {
ds := sqlds.NewDatasource(&plugin.Clickhouse{})
return ds.NewDatasource(settings)
}

0 comments on commit 4d5e6df

Please sign in to comment.