Remove remnants of global transport (#3792)

* Remove remenants

* Generate pb.go

* Remove function
This commit is contained in:
Kobe Arthur Scofield 2024-09-12 02:06:11 +08:00 committed by GitHub
parent 297a9ae7bd
commit 7496413e5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 62 additions and 298 deletions

View file

@ -185,13 +185,6 @@ func initInstanceWithConfig(config *Config, server *Instance) (bool, error) {
server.ctx = context.WithValue(server.ctx, "cone",
platform.NewEnvFlag(platform.UseCone).GetValue(func() string { return "" }) != "true")
if config.Transport != nil {
features.PrintDeprecatedFeatureWarning("global transport settings")
}
if err := config.Transport.Apply(); err != nil {
return true, err
}
for _, appSettings := range config.App {
settings, err := appSettings.GetInstance()
if err != nil {