(sec uint64)
| 128 | } |
| 129 | |
| 130 | func secondsToDuration(sec uint64) time.Duration { |
| 131 | const maxSeconds = uint64(math.MaxInt64) / uint64(time.Second) |
| 132 | if sec > maxSeconds { |
| 133 | return time.Duration(math.MaxInt64) |
| 134 | } |
| 135 | return time.Duration(sec) * time.Second |
| 136 | } |
| 137 | |
| 138 | func makeHashAuthFunc(hexBufPool *sync.Pool) func([]byte) string { |
| 139 | return func(authHeader []byte) string { |
no outgoing calls