Making private some sqlstore methods (#13895)
* Making private some sqlstore methods * Calling for create indexes on missing stores Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
aec606500f
Коммит
2a5d30f8f3
@@ -44,8 +44,8 @@ type SqlBotStore struct {
|
||||
metrics einterfaces.MetricsInterface
|
||||
}
|
||||
|
||||
// NewSqlBotStore creates an instance of SqlBotStore, registering the table schema in question.
|
||||
func NewSqlBotStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.BotStore {
|
||||
// newSqlBotStore creates an instance of SqlBotStore, registering the table schema in question.
|
||||
func newSqlBotStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) store.BotStore {
|
||||
us := &SqlBotStore{
|
||||
SqlStore: sqlStore,
|
||||
metrics: metrics,
|
||||
@@ -61,7 +61,7 @@ func NewSqlBotStore(sqlStore SqlStore, metrics einterfaces.MetricsInterface) sto
|
||||
return us
|
||||
}
|
||||
|
||||
func (us SqlBotStore) CreateIndexesIfNotExists() {
|
||||
func (us SqlBotStore) createIndexesIfNotExists() {
|
||||
}
|
||||
|
||||
// traceBot is a helper function for adding to a bot trace when logging.
|
||||
|
||||
Ссылка в новой задаче
Block a user