优化代码

This commit is contained in:
刘祥超
2023-08-08 15:12:28 +08:00
parent 3c5c961cd5
commit 6a2803187e
21 changed files with 61 additions and 78 deletions

View File

@@ -3,6 +3,7 @@
package serverconfigs
import (
"context"
"github.com/TeaOSLab/EdgeCommon/pkg/serverconfigs/shared"
"testing"
)
@@ -30,7 +31,7 @@ func TestReverseProxyConfig_Init(t *testing.T) {
Addr: &NetworkAddressConfig{Host: "127.0.0.4"},
IsOn: true,
})
err := config.Init(nil)
err := config.Init(context.TODO())
if err != nil {
t.Fatal(err)
}