Skip to content

Commit

Permalink
fix: merge missing config
Browse files Browse the repository at this point in the history
  • Loading branch information
zishang520 committed Oct 8, 2024
1 parent 0856f95 commit 3965505
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions socket/server-options.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,38 +148,36 @@ func (s *ServerOptions) Assign(data ServerOptionsInterface) (ServerOptionsInterf
if s.GetRawAllowEIO3() == nil {
s.SetAllowEIO3(data.AllowEIO3())
}

if s.GetRawPath() == nil {
s.SetPath(data.Path())
}

if s.GetRawDestroyUpgradeTimeout() == nil {
s.SetDestroyUpgradeTimeout(data.DestroyUpgradeTimeout())
}

if s.GetRawDestroyUpgrade() == nil {
s.SetDestroyUpgrade(data.DestroyUpgrade())
}

if s.GetRawAddTrailingSlash() == nil {
s.SetAddTrailingSlash(data.AddTrailingSlash())
}

if s.GetRawServeClient() == nil {
s.SetServeClient(data.ServeClient())
}

if s.GetRawAdapter() == nil {
s.SetAdapter(data.Adapter())
}

if s.GetRawParser() == nil {
s.SetParser(data.Parser())
}

if s.GetRawConnectTimeout() == nil {
s.SetConnectTimeout(data.ConnectTimeout())
}
if s.GetRawConnectionStateRecovery() == nil {
s.SetConnectionStateRecovery(data.ConnectionStateRecovery())
}
if s.GetRawCleanupEmptyChildNamespaces() == nil {
s.SetCleanupEmptyChildNamespaces(data.CleanupEmptyChildNamespaces())
}

return s, nil
}
Expand Down

0 comments on commit 3965505

Please sign in to comment.