mirror of
https://github.com/statbate/special-pancake.git
synced 2026-08-11 03:12:42 +00:00
remove
This commit is contained in:
parent
03732ea80d
commit
249b30961f
4 changed files with 3 additions and 47 deletions
|
|
@ -80,8 +80,9 @@ func saveDB() {
|
|||
for {
|
||||
select {
|
||||
case <-sendIndex.C:
|
||||
if time.Now().Minute() >= 5 && tokens > 0 {
|
||||
passed := time.Now().Second() + time.Now().Minute()*60
|
||||
t := time.Now()
|
||||
if t.Minute() >= 5 && tokens > 0 {
|
||||
passed := t.Second() + t.Minute()*60
|
||||
msg, err := json.Marshal(struct {
|
||||
Chanel string `json:"chanel"`
|
||||
Index int64 `json:"index"`
|
||||
|
|
@ -93,7 +94,6 @@ func saveDB() {
|
|||
socketServer <- msg
|
||||
}
|
||||
}
|
||||
|
||||
case <-cleanCache.C:
|
||||
l := len(data)
|
||||
now := time.Now().Unix()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue