@@ -1,16 +1,16 @@
package restriction
import (
- "context"
- "fmt"
- "log"
- "sync"
- "time"
+ "context"
+ "fmt"
+ "log"
+ "sync"
+ "time"
)
var (
ReqLimitMap = map[string]*ReqLimit{}
- reqLimitLock *sync.Mutex
+ reqLimitLock = &sync.Mutex{}
type ReqLimit struct {