Time Layer for measure the Store methods calls time (#11609)
* Time Layer for measure the Store methods calls time * Fixing build * Fixing a formating problem * Fixing tests * generating store mocks * Fixing build * Updating generated timer layer * Updating timer layer to the last store interface * Updating timer layer * Generating time layer
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
fe9e8a4493
Коммит
e4582905ea
@@ -6,8 +6,6 @@ package commands
|
||||
import (
|
||||
"github.com/mattermost/mattermost-server/app"
|
||||
"github.com/mattermost/mattermost-server/model"
|
||||
"github.com/mattermost/mattermost-server/store"
|
||||
"github.com/mattermost/mattermost-server/store/sqlstore"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
@@ -38,7 +36,5 @@ func printVersion(a *app.App) {
|
||||
CommandPrintln("Build Date: " + model.BuildDate)
|
||||
CommandPrintln("Build Hash: " + model.BuildHash)
|
||||
CommandPrintln("Build Enterprise Ready: " + model.BuildEnterpriseReady)
|
||||
if supplier, ok := a.Srv.Store.(*store.LayeredStore).DatabaseLayer.(*sqlstore.SqlSupplier); ok {
|
||||
CommandPrintln("DB Version: " + supplier.GetCurrentSchemaVersion())
|
||||
}
|
||||
CommandPrintln("DB Version: " + a.Srv.Store.GetCurrentSchemaVersion())
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user