Skip to content

Commit

Permalink
Upgrade deps.
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Mar 13, 2024
1 parent cd765ba commit ea55171
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 59 deletions.
2 changes: 1 addition & 1 deletion cmd/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"

"github.com/RichardKnop/machinery/v1/tasks"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/gomodule/redigo/redis"
"github.com/zerodha/dungbeetle/models"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
machinery "github.com/RichardKnop/machinery/v1"
"github.com/RichardKnop/machinery/v1/config"
mlog "github.com/RichardKnop/machinery/v1/log"
"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/knadh/koanf/parsers/toml"
"github.com/knadh/koanf/providers/env"
"github.com/knadh/koanf/providers/file"
Expand Down
9 changes: 7 additions & 2 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
machinery "github.com/RichardKnop/machinery/v1"
"github.com/RichardKnop/machinery/v1/config"
"github.com/RichardKnop/machinery/v1/tasks"
uuid "github.com/satori/go.uuid"
uuid "github.com/gofrs/uuid/v5"
"github.com/zerodha/dungbeetle/models"
)

Expand All @@ -37,7 +37,12 @@ func createJobSignature(j models.JobReq, taskName string, ttl int, srv *Server)
// actual task. So, we generate the ID and pass it as an argument
// to the task itself.
if j.JobID == "" {
j.JobID = fmt.Sprintf("job_%v", uuid.NewV4())
uid, err := uuid.NewV4()
if err != nil {
return tasks.Signature{}, fmt.Errorf("error generating uuid: %v", err)
}

j.JobID = fmt.Sprintf("job_%v", uid)
}

// Task arguments.
Expand Down
2 changes: 1 addition & 1 deletion cmd/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"time"

"github.com/RichardKnop/machinery/v1/config"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/stretchr/testify/assert"
"github.com/zerodha/dungbeetle/backends"
"github.com/zerodha/dungbeetle/models"
Expand Down
2 changes: 1 addition & 1 deletion cmd/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"strings"

"github.com/knadh/goyesql"
"github.com/knadh/goyesql/v2"
)

// Task represents an SQL query with its prepared and raw forms.
Expand Down
14 changes: 7 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@ module github.com/zerodha/dungbeetle
go 1.20

require (
github.com/ClickHouse/clickhouse-go v1.4.5
github.com/RichardKnop/machinery v1.10.5
github.com/go-chi/chi v4.1.2+incompatible
github.com/go-sql-driver/mysql v1.6.0
github.com/ClickHouse/clickhouse-go v1.5.4
github.com/RichardKnop/machinery v1.10.6
github.com/go-chi/chi/v5 v5.0.10
github.com/go-sql-driver/mysql v1.7.1
github.com/gofrs/uuid/v5 v5.0.0
github.com/gomodule/redigo v2.0.0+incompatible
github.com/knadh/goyesql v2.0.0+incompatible
github.com/knadh/goyesql/v2 v2.2.0
github.com/knadh/koanf/parsers/toml v0.1.0
github.com/knadh/koanf/providers/env v0.1.0
github.com/knadh/koanf/providers/file v0.1.0
github.com/knadh/koanf/providers/posflag v0.1.0
github.com/knadh/koanf/v2 v2.0.1
github.com/lib/pq v1.10.1
github.com/satori/go.uuid v1.2.0
github.com/lib/pq v1.10.9
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.4
)
Expand Down
72 changes: 27 additions & 45 deletions go.sum

Large diffs are not rendered by default.

0 comments on commit ea55171

Please sign in to comment.