Skip to content

Commit

Permalink
Replace Zookeeper client with github.com/go-zookeeper/zk
Browse files Browse the repository at this point in the history
The github.com/samuel/go-zookeeper module is no longer being maintained.
All development on it has shifted to github.com/go-zookeeper/zk.
  • Loading branch information
bwester committed Feb 24, 2022
1 parent 0f5d5b1 commit b10af07
Show file tree
Hide file tree
Showing 25 changed files with 790 additions and 559 deletions.
2 changes: 1 addition & 1 deletion config/zkhelpers/zkhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"strings"

"github.com/samuel/go-zookeeper/zk"
"github.com/go-zookeeper/zk"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion config/zookeeper_persister.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"sync"
"time"

"github.com/go-zookeeper/zk"
"github.com/golang/protobuf/proto"
"github.com/samuel/go-zookeeper/zk"
"github.com/square/quotaservice/logging"
pb "github.com/square/quotaservice/protos/config"
)
Expand Down
2 changes: 1 addition & 1 deletion config/zookeeper_persister_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"io"
"os"

"github.com/samuel/go-zookeeper/zk"
"github.com/go-zookeeper/zk"
"github.com/square/quotaservice/config/zkhelpers"
pb "github.com/square/quotaservice/protos/config"
"github.com/square/quotaservice/test/helpers"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ require (
github.com/alecthomas/units v0.0.0-20150109002421-6b4e7dc5e314 // indirect
github.com/go-redis/redis v6.15.2+incompatible
github.com/go-sql-driver/mysql v1.4.1
github.com/go-zookeeper/zk v1.0.2
github.com/golang/protobuf v1.2.0
github.com/googleapis/gax-go v0.0.0-20170305230405-8c5154c0fe5b // indirect
github.com/kr/pretty v0.1.0 // indirect
Expand All @@ -23,7 +24,6 @@ require (
github.com/opentracing/opentracing-go v1.0.2
github.com/ory/dockertest/v3 v3.6.0
github.com/pkg/errors v0.8.1
github.com/samuel/go-zookeeper v0.0.0-20161028232340-1d7be4effb13
github.com/sergi/go-diff v1.0.0 // indirect
github.com/stretchr/testify v1.4.0
golang.org/x/net v0.0.0-20191003171128-d98b1b443823
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ github.com/go-redis/redis v6.15.2+incompatible h1:9SpNVG76gr6InJGxoZ6IuuxaCOQwDA
github.com/go-redis/redis v6.15.2+incompatible/go.mod h1:NAIEuMOZ/fxfXJIrKDQDz8wamY7mA7PouImQ2Jvg6kA=
github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA=
github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/go-zookeeper/zk v1.0.2 h1:4mx0EYENAdX/B/rbunjlt5+4RTA/a9SMHBRuSKdGxPM=
github.com/go-zookeeper/zk v1.0.2/go.mod h1:nOB03cncLtlp4t+UAkGSV+9beXP/akpekBwL+UX1Qcw=
github.com/golang/protobuf v1.2.0 h1:P3YflyNX/ehuJFLhxviNdFxQPkGK5cDcApsge1SqnvM=
github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
github.com/google/go-cmp v0.3.0 h1:crn/baboCvb5fXaQ0IJ1SGTsTVrWpDsCWC8EGETZijY=
Expand Down Expand Up @@ -80,8 +82,6 @@ github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
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/samuel/go-zookeeper v0.0.0-20161028232340-1d7be4effb13 h1:4AQBn5RJY4WH8t8TLEMZUsWeXHAUcoao42TCAfpEJJE=
github.com/samuel/go-zookeeper v0.0.0-20161028232340-1d7be4effb13/go.mod h1:gi+0XIa01GRL2eRQVjQkKGqKF3SF9vZR/HnPullcV2E=
github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ=
github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
Expand Down
2 changes: 1 addition & 1 deletion test/zktestserver/server_help.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path/filepath"
"time"

"github.com/samuel/go-zookeeper/zk"
"github.com/go-zookeeper/zk"
)

type TestServer struct {
Expand Down
2 changes: 1 addition & 1 deletion test/zktestserver/server_java.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os/exec"
"path/filepath"

"github.com/samuel/go-zookeeper/zk"
"github.com/go-zookeeper/zk"
)

type ErrMissingServerConfigField string
Expand Down
8 changes: 8 additions & 0 deletions vendor/github.com/go-zookeeper/zk/.codecov.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions vendor/github.com/go-zookeeper/zk/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

57 changes: 57 additions & 0 deletions vendor/github.com/go-zookeeper/zk/CONTRIBUTION.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

File renamed without changes.
51 changes: 51 additions & 0 deletions vendor/github.com/go-zookeeper/zk/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions vendor/github.com/go-zookeeper/zk/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b10af07

Please sign in to comment.