fix(server): 1.replace bolt with sqlite in config 2.add hardcoded listing roles

This commit is contained in:
hexxa 2022-09-16 11:28:51 +08:00 committed by Hexxa
parent d97451653e
commit 4f6683de03
9 changed files with 61 additions and 85 deletions

View file

@ -37,6 +37,10 @@ func NewSQLiteStore(db db.IDB) (*SQLiteStore, error) {
}, nil
}
func (st *SQLiteStore) Close() error {
return st.db.Close()
}
func (st *SQLiteStore) Lock() {
st.mtx.Lock()
}