Minimize app dependency on platform service (#21548)

Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2022-12-07 20:31:03 +03:00
коммит произвёл GitHub
родитель 91ee9ed2eb
Коммит d8e2859b0b
17 изменённых файлов: 228 добавлений и 281 удалений

Просмотреть файл

@@ -287,7 +287,7 @@ func NewServer(options ...Option) (*Server, error) {
// It is important to initialize the hub only after the global logger is set
// to avoid race conditions while logging from inside the hub.
// Step 5: Start hub in platform which the hub depends on s.Channels() (step 4)
s.platform.Start(New(ServerConnector(s.Channels())))
s.platform.Start()
// -------------------------------------------------------------------------
// Everything below this is not order sensitive and safe to be moved around.