From ae78449a20e04deb6f8b7afdcb68f3873d59e9e4 Mon Sep 17 00:00:00 2001 From: kanozec <30459655+kanozec@users.noreply.github.com> Date: Tue, 12 Nov 2019 19:33:05 +0800 Subject: [PATCH] Fix typo in server_app_adapters.go (#13042) --- app/server.go | 2 +- app/server_app_adapters.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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()