Chore: use context rather than golang.org/x/net/context (#114000)

This commit is contained in:
Ryan McKinley
2025-11-17 12:53:44 +03:00
committed by GitHub
parent 9dd8c85448
commit 1ef7c68f53
3 changed files with 48 additions and 5 deletions
@@ -1,9 +1,8 @@
package schemaversion
import (
"context"
"strconv"
"golang.org/x/net/context"
)
const (
@@ -11,7 +10,7 @@ const (
LATEST_VERSION = 42
)
type SchemaVersionMigrationFunc func(context.Context, map[string]interface{}) error
type SchemaVersionMigrationFunc func(context.Context, map[string]any) error
type DataSourceInfo struct {
Default bool
@@ -79,7 +78,7 @@ func GetMigrations(dsIndexProvider DataSourceIndexProvider) map[int]SchemaVersio
}
}
func GetSchemaVersion(dash map[string]interface{}) int {
func GetSchemaVersion(dash map[string]any) int {
if v, ok := dash["schemaVersion"]; ok {
switch v := v.(type) {
case int: