aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rw-r--r--cmd/santa-example/main.go2
-rw-r--r--go.mod2
-rw-r--r--rate/ratelimit.go4
-rw-r--r--stmutil/context.go2
5 files changed, 11 insertions, 7 deletions
diff --git a/README.md b/README.md
index 2ef4e8e..1906dcd 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,6 @@
# stm
-[![GoDoc](https://godoc.org/github.com/lukechampine/stm?status.svg)](https://godoc.org/github.com/lukechampine/stm) [![Go Report Card](https://goreportcard.com/badge/github.com/lukechampine/stm)](https://goreportcard.com/report/github.com/lukechampine/stm)
+[![GoDoc](https://godoc.org/github.com/anacrolix/stm?status.svg)](https://godoc.org/github.com/anacrolix/stm) [![Go Report Card](https://goreportcard.com/badge/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 {
diff --git a/go.mod b/go.mod
index 8813ebb..c711940 100644
--- a/go.mod
+++ b/go.mod
@@ -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()) {