mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-02 14:32:13 +08:00
🎨 Clean code
This commit is contained in:
parent
faa5f4decd
commit
6a3c280639
@ -36,7 +36,6 @@ var (
|
||||
operationQueue []*dbQueueOperation
|
||||
dbQueueLock = sync.Mutex{}
|
||||
txLock = sync.Mutex{}
|
||||
isWriting = false
|
||||
)
|
||||
|
||||
type dbQueueOperation struct {
|
||||
@ -72,11 +71,7 @@ func FlushQueue() {
|
||||
}
|
||||
|
||||
txLock.Lock()
|
||||
isWriting = true
|
||||
defer func() {
|
||||
isWriting = false
|
||||
txLock.Unlock()
|
||||
}()
|
||||
defer txLock.Unlock()
|
||||
|
||||
start := time.Now()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user