mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-08 05:27:03 +08:00
fix: fix lint errros in pkg/statics
This commit is contained in:
parent
7495f6b034
commit
be0f294ec3
@ -36,9 +36,8 @@ func (s *Statistics) output() {
|
||||
var timeIntervalNum uint64
|
||||
for {
|
||||
sum = *s.AllCount
|
||||
select {
|
||||
case <-t.C:
|
||||
}
|
||||
<-t.C
|
||||
|
||||
if *s.AllCount-sum <= 0 {
|
||||
intervalCount = 0
|
||||
} else {
|
||||
@ -66,5 +65,6 @@ func (s *Statistics) output() {
|
||||
func NewStatistics(allCount *uint64, moduleName, printArgs string, sleepTime int) *Statistics {
|
||||
p := &Statistics{AllCount: allCount, ModuleName: moduleName, SleepTime: uint64(sleepTime), PrintArgs: printArgs}
|
||||
go p.output()
|
||||
|
||||
return p
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user