Skip to content

Commit

Permalink
update go.mod (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
xh3b4sd authored Oct 23, 2024
1 parent aee1351 commit aaf887f
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion engine/cycles.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (e *Engine) cycles(tas *task.Task) error {
v := task.ToString(upd)
s := upd.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down
8 changes: 4 additions & 4 deletions engine/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ func (e *Engine) delete(tas *task.Task) error {
v := task.ToString(cur)
s := cur.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down Expand Up @@ -298,7 +298,7 @@ func (e *Engine) delete(tas *task.Task) error {
v := task.ToString(x)
s := x.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand All @@ -323,7 +323,7 @@ func (e *Engine) delete(tas *task.Task) error {
v := task.ToString(x)
s := x.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down Expand Up @@ -380,7 +380,7 @@ func (e *Engine) delete(tas *task.Task) error {
v := task.ToString(tas)
s := tas.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down
4 changes: 2 additions & 2 deletions engine/expire.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func (e *Engine) expire() error {
v := task.ToString(x)
s := x.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down Expand Up @@ -251,7 +251,7 @@ func (e *Engine) expire() error {
v := task.ToString(x)
s := x.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down
2 changes: 1 addition & 1 deletion engine/extend.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func (e *Engine) extend(tas *task.Task) error {
v := task.ToString(cur)
s := cur.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down
2 changes: 1 addition & 1 deletion engine/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (e *Engine) search() (*task.Task, error) {
v := task.ToString(tas)
s := tas.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return nil, tracer.Mask(err)
}
Expand Down
4 changes: 2 additions & 2 deletions engine/ticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ func (e *Engine) ticker() error {
v := task.ToString(x)
s := x.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down Expand Up @@ -304,7 +304,7 @@ func (e *Engine) ticker() error {
v := task.ToString(x)
s := x.Core.Get().Object().Float()

_, err := e.red.Sorted().Update().Score(k, v, s)
_, err := e.red.Sorted().Update().Value(k, v, s)
if err != nil {
return tracer.Mask(err)
}
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ go 1.22.5
require (
github.com/google/go-cmp v0.6.0
github.com/google/uuid v1.6.0
github.com/prometheus/client_golang v1.20.4
github.com/prometheus/client_golang v1.20.5
github.com/xh3b4sd/breakr v0.1.0
github.com/xh3b4sd/logger v0.8.1
github.com/xh3b4sd/objectid v0.2.0
github.com/xh3b4sd/redigo v0.38.0
github.com/xh3b4sd/redigo v0.39.0
github.com/xh3b4sd/tracer v0.11.1
)

Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prometheus/client_golang v1.20.4 h1:Tgh3Yr67PaOv/uTqloMsCEdeuFTatm5zIq5+qNN23vI=
github.com/prometheus/client_golang v1.20.4/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
github.com/prometheus/client_golang v1.20.5 h1:cxppBPuYhUnsO6yo/aoRol4L7q7UFfdm+bR9r+8l63Y=
github.com/prometheus/client_golang v1.20.5/go.mod h1:PIEt8X02hGcP8JWbeHyeZ53Y/jReSnHgO035n//V5WE=
github.com/prometheus/client_model v0.6.1 h1:ZKSh/rekM+n3CeS952MLRAdFwIKqeY8b62p8ais2e9E=
github.com/prometheus/client_model v0.6.1/go.mod h1:OrxVMOVHjw3lKMa8+x6HeMGkHMQyHDk9E3jmP2AmGiY=
github.com/prometheus/common v0.60.0 h1:+V9PAREWNvJMAuJ1x1BaWl9dewMW4YrHZQbx0sJNllA=
Expand All @@ -57,8 +57,8 @@ github.com/xh3b4sd/logger v0.8.1 h1:faI/W2c6tg1ah2Mp/c4/hY8B/94SL3nnUs7jNITyUgI=
github.com/xh3b4sd/logger v0.8.1/go.mod h1:fPOPU7+b3NX+elW7raMDCYbRHJIjKToQR3icsHNSHB0=
github.com/xh3b4sd/objectid v0.2.0 h1:MhiH120lKf1IXpG2vLjQTVs7BD8NgwkDefHplZthw8U=
github.com/xh3b4sd/objectid v0.2.0/go.mod h1:lCc4vB/7783ARHUCnoT28benOxIJvqvBFvoBb9psNpE=
github.com/xh3b4sd/redigo v0.38.0 h1:MZD1U1p8nvL4TLeFa/eFGW3SDBdJHwDA7hcD/6/WRkM=
github.com/xh3b4sd/redigo v0.38.0/go.mod h1:oZ+QmnabHOKkpEev5kWW3ZkxnNVEujllGko4GYPTw5k=
github.com/xh3b4sd/redigo v0.39.0 h1:SWDOevoz7q1hSn2y8ezPa2YD7IvpbS/V34geFZholMY=
github.com/xh3b4sd/redigo v0.39.0/go.mod h1:oZ+QmnabHOKkpEev5kWW3ZkxnNVEujllGko4GYPTw5k=
github.com/xh3b4sd/tracer v0.11.1 h1:66G8yNkUkyuTRQ586cQMKrBxrD4mQej8mpR9PYoIiGg=
github.com/xh3b4sd/tracer v0.11.1/go.mod h1:vrAkiLN6hl3VdUeLo71mvqCgUw2TE0YyvzrORa/vHXs=
golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M=
Expand Down

0 comments on commit aaf887f

Please sign in to comment.