diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | cmd/santa-example/main.go | 2 | ||||
-rw-r--r-- | go.mod | 2 | ||||
-rw-r--r-- | rate/ratelimit.go | 4 | ||||
-rw-r--r-- | stmutil/context.go | 2 |
5 files changed, 11 insertions, 7 deletions
@@ -1,6 +1,6 @@ # stm -[](https://godoc.org/github.com/lukechampine/stm) [](https://goreportcard.com/report/github.com/lukechampine/stm) +[](https://godoc.org/github.com/anacrolix/stm) [](https://goreportcard.com/report/github.com/anacrolix/stm) Package `stm` provides [Software Transactional Memory](https://en.wikipedia.org/wiki/Software_transactional_memory) operations for Go. This is an alternative to the standard way of writing concurrent code (channels and @@ -186,4 +186,8 @@ BenchmarkReadVarSTM-4 5000 268726 ns/op BenchmarkReadVarMutex-4 10000 248479 ns/op BenchmarkReadVarChannel-4 10000 240086 ns/op -```
\ No newline at end of file +``` + +## Credits + +Package stm was [originally](https://github.com/lukechampine/stm/issues/3#issuecomment-549087541) created by lukechampine.
\ No newline at end of file diff --git a/cmd/santa-example/main.go b/cmd/santa-example/main.go index 29119cc..9e6eed7 100644 --- a/cmd/santa-example/main.go +++ b/cmd/santa-example/main.go @@ -34,7 +34,7 @@ import ( "math/rand" "time" - "github.com/lukechampine/stm" + "github.com/anacrolix/stm" ) type gate struct { @@ -1,4 +1,4 @@ -module github.com/lukechampine/stm +module github.com/anacrolix/stm go 1.13 diff --git a/rate/ratelimit.go b/rate/ratelimit.go index 8525371..0278283 100644 --- a/rate/ratelimit.go +++ b/rate/ratelimit.go @@ -6,8 +6,8 @@ import ( "math" "time" - "github.com/lukechampine/stm" - "github.com/lukechampine/stm/stmutil" + "github.com/anacrolix/stm" + "github.com/anacrolix/stm/stmutil" ) type numTokens = int diff --git a/stmutil/context.go b/stmutil/context.go index 75e3f8a..e82e522 100644 --- a/stmutil/context.go +++ b/stmutil/context.go @@ -3,7 +3,7 @@ package stmutil import ( "context" - "github.com/lukechampine/stm" + "github.com/anacrolix/stm" ) func ContextDoneVar(ctx context.Context) (*stm.Var, func()) { |