mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-11 14:08:52 +00:00
remove tmp print statement
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package api
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"golang.org/x/time/rate"
|
||||
"time"
|
||||
)
|
||||
@@ -33,7 +32,6 @@ func (api *WebAPI) ReserveAssign(pid int64) *rate.Reservation {
|
||||
|
||||
limiter = rate.NewLimiter(project.AssignRate, 1)
|
||||
api.AssignLimiters.Store(pid, limiter)
|
||||
fmt.Printf("Create")
|
||||
}
|
||||
|
||||
return limiter.(*rate.Limiter).ReserveN(time.Now(), 1)
|
||||
|
||||
Reference in New Issue
Block a user