diff --git a/controller/tokenController.go b/controller/tokenController.go index afa8f97..a489aab 100644 --- a/controller/tokenController.go +++ b/controller/tokenController.go @@ -107,7 +107,7 @@ func GetTokenInfoHandler(c *gin.Context) { output.Token = input.Token output.DedupObject = dedupObject output.DataFormat = dataFormat - output.DedupItemsNumber = global.RDB.BFCard(global.RCtx, "dedup:"+input.Token+":"+dedupObject).Val() + output.DedupItemsNumber = global.RDB.CFInfo(global.RCtx, "dedup:"+input.Token+":"+dedupObject).Val().NumItemsInserted output.CacheListNumber = global.RDB.LLen(global.RCtx, "list:"+input.Token).Val() c.JSON(http.StatusOK, gin.H{"result": output}) diff --git a/tool/update-dypid.go b/tool/update-dypid.go index e6ac8b0..2cd867a 100644 --- a/tool/update-dypid.go +++ b/tool/update-dypid.go @@ -54,7 +54,7 @@ func main() { } wg.Wait() - fmt.Println("上传完成,耗时:", time.Since(start)) + fmt.Printf("上传完成,耗时:%s\n", time.Since(start)) } time.Sleep(time.Minute) }