Fix staticcheck linter

This commit is contained in:
Cuong Manh Le
2025-10-09 19:12:06 +07:00
committed by Cuong Manh Le
parent fb807d7c37
commit ef7432df55
2 changed files with 4 additions and 7 deletions
+3 -2
View File
@@ -357,8 +357,9 @@ func Test_legacyResolverWithBigExtraSection(t *testing.T) {
Type: ResolverTypeLegacy,
Endpoint: lanAddr,
}
uc.Init()
r, err := NewResolver(uc)
ctx := context.Background()
uc.Init(ctx)
r, err := NewResolver(ctx, uc)
if err != nil {
t.Fatal(err)
}