diff --git a/app/server.go b/app/server.go index fb7ec94f25..daad2ed0d8 100644 --- a/app/server.go +++ b/app/server.go @@ -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 } diff --git a/app/server_app_adapters.go b/app/server_app_adapters.go index 272b488011..d4812b29ff 100644 --- a/app/server_app_adapters.go +++ b/app/server_app_adapters.go @@ -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()