mirror of
https://codeberg.org/superseriousbusiness/gotosocial.git
synced 2024-12-24 18:08:18 +03:00
3babb6c0d2
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.25.0 to 0.26.0. - [Commits](https://github.com/golang/net/compare/v0.25.0...v0.26.0) --- updated-dependencies: - dependency-name: golang.org/x/net dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
20 lines
515 B
Go
20 lines
515 B
Go
// Copyright 2024 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
package http2
|
|
|
|
import "time"
|
|
|
|
// A timer is a time.Timer, as an interface which can be replaced in tests.
|
|
type timer = interface {
|
|
C() <-chan time.Time
|
|
Reset(d time.Duration) bool
|
|
Stop() bool
|
|
}
|
|
|
|
// timeTimer adapts a time.Timer to the timer interface.
|
|
type timeTimer struct {
|
|
*time.Timer
|
|
}
|
|
|
|
func (t timeTimer) C() <-chan time.Time { return t.Timer.C }
|