MCPcopy Index your code
hub / github.com/FloatTech/ZeroBot-Plugin / delServerStatus

Method delServerStatus

plugin/minecraftobserver/store.go:109–123  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

107}
108
109func (d *db) delServerStatus(addr string) (err error) {
110 if d == nil {
111 return errDBConn
112 }
113 if addr == "" {
114 return errParam
115 }
116 d.statusLock.Lock()
117 defer d.statusLock.Unlock()
118 if err = d.sdb.Where("server_addr = ?", addr).Delete(&serverStatus{}).Error; err != nil {
119 // logrus.Errorln(logPrefix+"deleteSubscribe ERROR: ", err)
120 return
121 }
122 return
123}
124
125// 新增订阅
126func (d *db) newSubscribe(addr string, targetID, targetType int64) (err error) {

Callers 2

deleteSubscribeMethod · 0.95
Test_DAOFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_DAOFunction · 0.64