mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-05-05 18:09:42 -05:00
🎨 Clean code
This commit is contained in:
+1
-6
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user