From 790200e519ee25a1fdc14b2360e6d6b8e2e790b2 Mon Sep 17 00:00:00 2001 From: fumiama Date: Thu, 13 Jan 2022 23:03:42 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20=E8=BF=90=E5=8A=BF=20=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E4=B8=8B=E8=BD=BD=E9=94=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin_fortune/fortune.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugin_fortune/fortune.go b/plugin_fortune/fortune.go index e6f31aae..708c1b5c 100644 --- a/plugin_fortune/fortune.go +++ b/plugin_fortune/fortune.go @@ -10,7 +10,6 @@ import ( "math/rand" "os" "strconv" - "sync" "time" "github.com/fogleman/gg" // 注册了 jpg png gif @@ -40,8 +39,6 @@ var ( table = [...]string{"车万", "DC4", "爱因斯坦", "星空列车", "樱云之恋", "富婆妹", "李清歌", "公主连结", "原神", "明日方舟", "碧蓝航线", "碧蓝幻想", "战双", "阴阳师"} // 映射底图与 index index = make(map[string]uint8) - // 下载锁 - dlmu sync.Mutex // 签文 omikujis []map[string]string ) @@ -158,10 +155,8 @@ func init() { _ = os.Remove(cachefile) fallthrough case false: - dlmu.Lock() // 绘制背景 data, err = draw(background, title, text) - dlmu.Unlock() } if err != nil {