Fix typo in server_app_adapters.go (#13042)

Этот коммит содержится в:
kanozec
2019-11-12 19:33:05 +08:00
коммит произвёл Ben Schumacher
родитель e9ecb8fdaa
Коммит ae78449a20
2 изменённых файлов: 5 добавлений и 5 удалений

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

@@ -186,7 +186,7 @@ func NewServer(options ...Option) (*Server, error) {
return nil, errors.Wrapf(err, "unable to load Mattermost translation files")
}
err := s.RunOldAppInitalization()
err := s.RunOldAppInitialization()
if err != nil {
return nil, err
}

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

@@ -18,11 +18,11 @@ import (
"github.com/pkg/errors"
)
// This is a bridge between the old and new initalization for the context refactor.
// It calls app layer initalization code that then turns around and acts on the server.
// Don't add anything new here, new initilization should be done in the server and
// This is a bridge between the old and new initialization for the context refactor.
// It calls app layer initialization code that then turns around and acts on the server.
// Don't add anything new here, new initialization should be done in the server and
// performed in the NewServer function.
func (s *Server) RunOldAppInitalization() error {
func (s *Server) RunOldAppInitialization() error {
s.FakeApp().CreatePushNotificationsHub()
s.FakeApp().StartPushNotificationsHubWorkers()