- use millisecond for limit access speed

This commit is contained in:
gazebo
2018-10-27 16:13:31 +08:00
parent 6a5afbb07f
commit 02b9d6e380
5 changed files with 34 additions and 21 deletions

View File

@@ -43,7 +43,7 @@ func UnmarshalUseNumber(data []byte, result interface{}) error {
func MustMarshal(obj interface{}) []byte {
byteArr, err := json.Marshal(obj)
if err != nil {
panic(fmt.Sprintf("err when Marshal obj:%v", obj))
panic(fmt.Sprintf("err when Marshal obj:%v with error:%v", obj, err))
}
return byteArr
}