Add session, frontend and command services.
Этот коммит содержится в:
@@ -239,6 +239,8 @@ func NewChannels(services map[product.ServiceKey]any) (*Channels, error) {
|
||||
app: &App{ch: ch},
|
||||
}
|
||||
|
||||
services[product.CommandKey] = &App{ch: ch}
|
||||
|
||||
return ch, nil
|
||||
}
|
||||
|
||||
|
||||
@@ -253,6 +253,8 @@ func NewServer(options ...Option) (*Server, error) {
|
||||
product.KVStoreKey: s.platform,
|
||||
product.StoreKey: store.NewStoreServiceAdapter(s.Store()),
|
||||
product.SystemKey: &systemServiceAdapter{server: s},
|
||||
product.SessionKey: app,
|
||||
product.FrontendKey: app,
|
||||
}
|
||||
|
||||
// Step 4: Initialize products.
|
||||
|
||||
Ссылка в новой задаче
Block a user