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>
Этот коммит содержится в:
Jesús Espino
2020-03-03 11:45:49 +01:00
коммит произвёл GitHub
родитель aec606500f
Коммит 2a5d30f8f3
33 изменённых файлов: 124 добавлений и 121 удалений

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

@@ -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.