Skip to content
This repository was archived by the owner on Jan 15, 2022. It is now read-only.

Commit 6e18706

Browse files
committed
Update modules
1 parent 6370ec1 commit 6e18706

32 files changed

+37
-38
lines changed

v2/broker/amqp/broker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package amqp
33
import (
44
"fmt"
55
"github.com/gofrs/uuid"
6-
"github.com/spiral/jobs"
6+
"github.com/spiral/jobs/v2"
77
"sync"
88
"sync/atomic"
99
)

v2/broker/amqp/broker_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package amqp
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
"time"

v2/broker/amqp/consume_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package amqp
22

33
import (
44
"fmt"
5-
"github.com/spiral/jobs"
5+
"github.com/spiral/jobs/v2"
66
"github.com/stretchr/testify/assert"
77
"testing"
88
"time"

v2/broker/amqp/durability_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package amqp
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"io"
77
"net"

v2/broker/amqp/job.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package amqp
22

33
import (
44
"fmt"
5-
"github.com/spiral/jobs"
5+
"github.com/spiral/jobs/v2"
66
"github.com/streadway/amqp"
77
)
88

v2/broker/amqp/queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package amqp
22

33
import (
44
"fmt"
5-
"github.com/spiral/jobs"
5+
"github.com/spiral/jobs/v2"
66
"github.com/streadway/amqp"
77
"os"
88
"sync"

v2/broker/amqp/stat_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package amqp
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

v2/broker/beanstalk/broker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package beanstalk
22

33
import (
44
"fmt"
5-
"github.com/spiral/jobs"
5+
"github.com/spiral/jobs/v2"
66
"sync"
77
)
88

v2/broker/beanstalk/broker_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package beanstalk
22

33
import (
44
"github.com/beanstalkd/go-beanstalk"
5-
"github.com/spiral/jobs"
5+
"github.com/spiral/jobs/v2"
66
"github.com/stretchr/testify/assert"
77
"testing"
88
"time"

v2/broker/beanstalk/consume_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package beanstalk
22

33
import (
44
"fmt"
5-
"github.com/spiral/jobs"
5+
"github.com/spiral/jobs/v2"
66
"github.com/stretchr/testify/assert"
77
"testing"
88
"time"

v2/broker/beanstalk/durability_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package beanstalk
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"io"
77
"net"

v2/broker/beanstalk/job.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package beanstalk
33
import (
44
"bytes"
55
"encoding/gob"
6-
"github.com/spiral/jobs"
6+
"github.com/spiral/jobs/v2"
77
)
88

99
func pack(j *jobs.Job) []byte {

v2/broker/beanstalk/stat_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package beanstalk
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
"time"

v2/broker/beanstalk/tube.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package beanstalk
33
import (
44
"fmt"
55
"github.com/beanstalkd/go-beanstalk"
6-
"github.com/spiral/jobs"
6+
"github.com/spiral/jobs/v2"
77
"strconv"
88
"sync"
99
"sync/atomic"

v2/broker/ephemeral/broker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ephemeral
33
import (
44
"fmt"
55
"github.com/gofrs/uuid"
6-
"github.com/spiral/jobs"
6+
"github.com/spiral/jobs/v2"
77
"sync"
88
)
99

v2/broker/ephemeral/broker_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ephemeral
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
"time"

v2/broker/ephemeral/consume_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package ephemeral
22

33
import (
44
"fmt"
5-
"github.com/spiral/jobs"
5+
"github.com/spiral/jobs/v2"
66
"github.com/stretchr/testify/assert"
77
"testing"
88
"time"

v2/broker/ephemeral/queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ephemeral
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"sync"
66
"sync/atomic"
77
"time"

v2/broker/ephemeral/stat_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package ephemeral
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

v2/broker/sqs/broker.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package sqs
33
import (
44
"fmt"
55
"github.com/aws/aws-sdk-go/service/sqs"
6-
"github.com/spiral/jobs"
6+
"github.com/spiral/jobs/v2"
77
"sync"
88
)
99

v2/broker/sqs/broker_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package sqs
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
"time"

v2/broker/sqs/consume_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package sqs
22

33
import (
44
"fmt"
5-
"github.com/spiral/jobs"
5+
"github.com/spiral/jobs/v2"
66
"github.com/stretchr/testify/assert"
77
"testing"
88
"time"

v2/broker/sqs/durability_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package sqs
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"io"
77
"net"

v2/broker/sqs/job.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"github.com/aws/aws-sdk-go/aws"
66
"github.com/aws/aws-sdk-go/service/sqs"
7-
"github.com/spiral/jobs"
7+
"github.com/spiral/jobs/v2"
88
"strconv"
99
"time"
1010
)

v2/broker/sqs/queue.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"github.com/aws/aws-sdk-go/aws"
66
"github.com/aws/aws-sdk-go/service/sqs"
7-
"github.com/spiral/jobs"
7+
"github.com/spiral/jobs/v2"
88
"strconv"
99
"sync"
1010
"sync/atomic"

v2/broker/sqs/stat_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package sqs
22

33
import (
4-
"github.com/spiral/jobs"
4+
"github.com/spiral/jobs/v2"
55
"github.com/stretchr/testify/assert"
66
"testing"
77
)

v2/cmd/rr-jobs/jobs/debug.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"fmt"
2525
"github.com/sirupsen/logrus"
2626
"github.com/spf13/cobra"
27-
"github.com/spiral/jobs"
27+
"github.com/spiral/jobs/v2"
2828
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
2929
"github.com/spiral/roadrunner/cmd/util"
3030
"time"

v2/cmd/rr-jobs/jobs/metrics.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package jobs
2323
import (
2424
"github.com/prometheus/client_golang/prometheus"
2525
"github.com/spf13/cobra"
26-
"github.com/spiral/jobs"
26+
"github.com/spiral/jobs/v2"
2727
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
2828
"github.com/spiral/roadrunner/service/metrics"
2929
"github.com/spiral/roadrunner/util"

v2/cmd/rr-jobs/jobs/stat.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"github.com/dustin/go-humanize"
2626
"github.com/olekukonko/tablewriter"
2727
"github.com/spf13/cobra"
28-
"github.com/spiral/jobs"
28+
"github.com/spiral/jobs/v2"
2929
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
3030
"github.com/spiral/roadrunner/cmd/util"
3131
"net/rpc"

v2/cmd/rr-jobs/jobs/workers.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ package jobs
2323
import (
2424
tm "github.com/buger/goterm"
2525
"github.com/spf13/cobra"
26-
"github.com/spiral/jobs"
26+
"github.com/spiral/jobs/v2"
2727
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
2828
"github.com/spiral/roadrunner/cmd/util"
2929
"net/rpc"

v2/cmd/rr-jobs/main.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
package main
22

33
import (
4-
"github.com/spiral/jobs"
5-
"github.com/spiral/jobs/broker/amqp"
6-
"github.com/spiral/jobs/broker/beanstalk"
7-
"github.com/spiral/jobs/broker/ephemeral"
8-
"github.com/spiral/jobs/broker/sqs"
4+
"github.com/spiral/jobs/v2"
5+
"github.com/spiral/jobs/v2/broker/amqp"
6+
"github.com/spiral/jobs/v2/broker/beanstalk"
7+
"github.com/spiral/jobs/v2/broker/ephemeral"
8+
"github.com/spiral/jobs/v2/broker/sqs"
99

1010
rr "github.com/spiral/roadrunner/cmd/rr/cmd"
1111
"github.com/spiral/roadrunner/service/limit"
1212
"github.com/spiral/roadrunner/service/metrics"
1313
"github.com/spiral/roadrunner/service/rpc"
1414

15-
_ "github.com/spiral/jobs/cmd/rr-jobs/jobs"
15+
_ "github.com/spiral/jobs/v2/cmd/rr-jobs/jobs"
1616
)
1717

1818
func main() {

v2/go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/spiral/jobs
1+
module github.com/spiral/jobs/v2
22

33
go 1.14
44

@@ -8,7 +8,6 @@ require (
88
github.com/buger/goterm v0.0.0-20181115115552-c206103e1f37
99
github.com/dustin/go-humanize v1.0.0
1010
github.com/gofrs/uuid v3.2.0+incompatible
11-
github.com/kr/beanstalk v0.0.0-20180818045031-cae1762e4858
1211
github.com/olekukonko/tablewriter v0.0.4
1312
github.com/prometheus/client_golang v1.5.0
1413
github.com/sirupsen/logrus v1.4.2

0 commit comments

Comments
 (0)