Retry function in golang
func Retry(retryMax uint, interval time.Duration, fn func(a ...interface{}) (interface{}, error), fnParams ...interface{}) (res interface{}, err error) {
if res, err = fn(fnParams...); err != nil {
if retryMax--; retryMax > 0 {
time.Sleep(interval)
return Retry(retryMax, interval, fn, fnParams...)
}
}
return
}
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information