update
This commit is contained in:
parent
b342ed0dbc
commit
da855c1b29
8
.idea/.gitignore
generated
vendored
8
.idea/.gitignore
generated
vendored
@ -1,8 +0,0 @@
|
||||
# 默认忽略的文件
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# 基于编辑器的 HTTP 客户端请求
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
9
.idea/candy.iml
generated
9
.idea/candy.iml
generated
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="Go" enabled="true" />
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
8
.idea/modules.xml
generated
8
.idea/modules.xml
generated
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/candy.iml" filepath="$PROJECT_DIR$/.idea/candy.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
BIN
remind/remind.db
Normal file
BIN
remind/remind.db
Normal file
Binary file not shown.
@ -13,7 +13,7 @@ import (
|
||||
type Remind struct {
|
||||
db *stardb.StarDB
|
||||
tasks map[int]Task
|
||||
mu sync.RWMutex
|
||||
mu *sync.RWMutex
|
||||
callback func(remind Task)
|
||||
}
|
||||
|
||||
@ -52,7 +52,7 @@ func NewRemind(db *stardb.StarDB, callback func(task Task)) (*Remind, error) {
|
||||
func innerLoadDB(db *stardb.StarDB, callback func(task Task)) (*Remind, error) {
|
||||
var rem = Remind{
|
||||
db: db,
|
||||
mu: sync.RWMutex{},
|
||||
mu: new(sync.RWMutex),
|
||||
callback: callback,
|
||||
tasks: make(map[int]Task),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user