From 076a538ad6d1f928879ccbcea8813b5e6540cac6 Mon Sep 17 00:00:00 2001 From: xh3b4sd Date: Wed, 27 Sep 2023 18:54:53 +0200 Subject: [PATCH] update redigo for Sorted.Create.Score (#5) --- go.mod | 2 +- go.sum | 4 ++-- pkg/engine/create.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 70690c9..1951c45 100644 --- a/go.mod +++ b/go.mod @@ -8,7 +8,7 @@ require ( github.com/xh3b4sd/budget/v3 v3.3.0 github.com/xh3b4sd/logger v0.7.0 github.com/xh3b4sd/random v0.6.3 - github.com/xh3b4sd/redigo v0.34.5 + github.com/xh3b4sd/redigo v0.34.6 github.com/xh3b4sd/tracer v0.10.1 ) diff --git a/go.sum b/go.sum index b915ea1..56bea8b 100644 --- a/go.sum +++ b/go.sum @@ -130,8 +130,8 @@ github.com/xh3b4sd/logger v0.7.0 h1:ByA3u/NmzL0X27wDX36ur+s9J8t2f8V/iK/P7ZrIVEo= github.com/xh3b4sd/logger v0.7.0/go.mod h1:04/tPVBNATOPacEMTA72ImKCUWhT7+SDLcuPngkyJr0= github.com/xh3b4sd/random v0.6.3 h1:E4s0QGcgZAqiBWFZmmfiHnN/jfqCp+2eB3EB+UFnScU= github.com/xh3b4sd/random v0.6.3/go.mod h1:HmtM9mpjIW9gUoPIIupZmOSqwGkpkOROSn3YResnKFY= -github.com/xh3b4sd/redigo v0.34.5 h1:tYphUgy7gy3kN7k83nPyLrwdBjcr2AR68nK5cvZbEaU= -github.com/xh3b4sd/redigo v0.34.5/go.mod h1:FezZ2igUyrLcJvR6RLvD/YpGL1GCbVY6bGQfJ6S4pYk= +github.com/xh3b4sd/redigo v0.34.6 h1:LgLi7PV0EYOQe3NFtCn08F5l4bFEZZZF3D8il5Dx+/U= +github.com/xh3b4sd/redigo v0.34.6/go.mod h1:FezZ2igUyrLcJvR6RLvD/YpGL1GCbVY6bGQfJ6S4pYk= github.com/xh3b4sd/tracer v0.10.1 h1:wuzVeQtqYsy51Nkb7P/XavZ8rQYptxxmlM1ivFJ8dXE= github.com/xh3b4sd/tracer v0.10.1/go.mod h1:8nRbNXXhSSDmPfyoRRYgwQt/RpzAUH+zNsagP9InH8M= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/pkg/engine/create.go b/pkg/engine/create.go index 8a94d0d..58aee89 100644 --- a/pkg/engine/create.go +++ b/pkg/engine/create.go @@ -84,7 +84,7 @@ func (e *Engine) create(tas *task.Task) error { v := task.ToString(tas) s := tid - err = e.red.Sorted().Create().Value(k, v, s) + err = e.red.Sorted().Create().Score(k, v, s) if err != nil { return tracer.Mask(err) }