fix
This commit is contained in:
parent
46d51313b8
commit
68fc995e8d
@ -143,6 +143,7 @@ func SendUdpMsg(addr string, msg string) (res string, err error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
conn.SetReadDeadline(time.Now().Add(10 * time.Second))
|
||||||
buf := make([]byte, 2048)
|
buf := make([]byte, 2048)
|
||||||
n, errRet := conn.Read(buf)
|
n, errRet := conn.Read(buf)
|
||||||
if errRet != nil {
|
if errRet != nil {
|
||||||
|
@ -41,7 +41,7 @@ func (c *StandardCounter) Count() int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *StandardCounter) Inc(count int32) {
|
func (c *StandardCounter) Inc(count int32) {
|
||||||
atomic.AddInt32(&c.count, int32(count))
|
atomic.AddInt32(&c.count, count)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *StandardCounter) Dec(count int32) {
|
func (c *StandardCounter) Dec(count int32) {
|
||||||
|
Loading…
Reference in New Issue
Block a user