diff options
| author | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 02:45:15 -0600 |
|---|---|---|
| committer | Chris Wendt <chrismwendt@gmail.com> | 2022-06-08 03:02:44 -0600 |
| commit | 07407adf40111a06e51779976b33595c5fb44815 (patch) | |
| tree | 4c112399acb59898bf706a7dfacf42184075caac | |
| parent | Make Operation generic (diff) | |
| download | stm-07407adf40111a06e51779976b33595c5fb44815.tar.gz stm-07407adf40111a06e51779976b33595c5fb44815.tar.xz | |
Missing Operation type param in cmd/santa-example
From https://github.com/anacrolix/stm/commit/6ce9dfc42c83a5d5963c23d85ffebffe0323432e
| -rw-r--r-- | cmd/santa-example/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/santa-example/main.go b/cmd/santa-example/main.go index 72be64f..1a93ae4 100644 --- a/cmd/santa-example/main.go +++ b/cmd/santa-example/main.go @@ -137,7 +137,7 @@ type selection struct { gate1, gate2 gate } -func chooseGroup(g *group, task string, s *selection) stm.Operation { +func chooseGroup(g *group, task string, s *selection) stm.Operation[struct{}] { return stm.VoidOperation(func(tx *stm.Tx) { s.gate1, s.gate2 = g.await(tx) s.task = task |
