Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove internal fork of andres-erbsen/clock #41

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module go.uber.org/ratelimit
go 1.14

require (
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129
github.com/stretchr/testify v1.6.1
go.uber.org/atomic v1.7.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129 h1:MzBOUgng9orim59UnfUTLRjMpd09C5uEVQ6RPGeCaVI=
github.com/andres-erbsen/clock v0.0.0-20160526145045-9e14626cd129/go.mod h1:rFgpPQZYZ8vdbc+48xibu8ALc3yeyd64IhHS+PU6Yyg=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
Expand Down
135 changes: 0 additions & 135 deletions internal/clock/clock.go

This file was deleted.

34 changes: 0 additions & 34 deletions internal/clock/interface.go

This file was deleted.

42 changes: 0 additions & 42 deletions internal/clock/real.go

This file was deleted.

46 changes: 0 additions & 46 deletions internal/clock/timers.go

This file was deleted.

3 changes: 2 additions & 1 deletion mutexbased.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package ratelimit

import (
"go.uber.org/ratelimit/internal/clock"
"sync"
"time"

"github.com/andres-erbsen/clock"
)

type mutexLimiter struct {
Expand Down
2 changes: 1 addition & 1 deletion ratelimit.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"sync/atomic"
"unsafe"

"go.uber.org/ratelimit/internal/clock"
"github.com/andres-erbsen/clock"
)

// Note: This file is inspired by:
Expand Down
2 changes: 1 addition & 1 deletion ratelimit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"go.uber.org/atomic"
"go.uber.org/ratelimit"
"go.uber.org/ratelimit/internal/clock"

"github.com/andres-erbsen/clock"
"github.com/stretchr/testify/assert"
)

Expand Down