mirror of
https://github.com/imgproxy/imgproxy.git
synced 2025-04-01 20:34:23 +02:00
Remove forgotten struct
This commit is contained in:
parent
47012473bb
commit
94baf32120
5
timer.go
5
timer.go
@ -8,11 +8,6 @@ import (
|
|||||||
|
|
||||||
var timerSinceCtxKey = ctxKey("timerSince")
|
var timerSinceCtxKey = ctxKey("timerSince")
|
||||||
|
|
||||||
type timer struct {
|
|
||||||
StartTime time.Time
|
|
||||||
Timer <-chan time.Time
|
|
||||||
}
|
|
||||||
|
|
||||||
func startTimer(d time.Duration) (context.Context, context.CancelFunc) {
|
func startTimer(d time.Duration) (context.Context, context.CancelFunc) {
|
||||||
return context.WithTimeout(
|
return context.WithTimeout(
|
||||||
context.WithValue(context.Background(), timerSinceCtxKey, time.Now()),
|
context.WithValue(context.Background(), timerSinceCtxKey, time.Now()),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user