Skip to content

Commit

Permalink
Update nats references to go-nats
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Schultz <tschultz@pivotal.io>
  • Loading branch information
Aidan Obley authored and tylerschultz committed Jun 11, 2018
1 parent 7b19a0a commit 45ac093
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 26 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@
[submodule "src/github.com/nats-io/go-nats"]
path = src/github.com/nats-io/go-nats
url = https://github.com/nats-io/go-nats
[submodule "src/github.com/nats-io/nats"]
path = src/github.com/nats-io/nats
url = https://github.com/nats-io/nats
[submodule "src/github.com/nats-io/nuid"]
path = src/github.com/nats-io/nuid
url = https://github.com/nats-io/nuid
Expand Down
2 changes: 1 addition & 1 deletion packages/performance-test-sd/spec
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ files:
- github.com/nats-io/gnatsd/vendor/golang.org/x/crypto/bcrypt/*.go # gosub
- github.com/nats-io/gnatsd/vendor/golang.org/x/crypto/blowfish/*.go # gosub
- github.com/nats-io/go-nats/*.go # gosub
- github.com/nats-io/go-nats/bench/*.go # gosub
- github.com/nats-io/go-nats/encoders/builtin/*.go # gosub
- github.com/nats-io/go-nats/util/*.go # gosub
- github.com/nats-io/nats-top/util/*.go # gosub
- github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/conf/*.go # gosub
- github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server/*.go # gosub
- github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server/pse/*.go # gosub
- github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/vendor/github.com/nats-io/nuid/*.go # gosub
- github.com/nats-io/nats/bench/*.go # gosub
- github.com/nats-io/nuid/*.go # gosub
- github.com/onsi/ginkgo/*.go # gosub
- github.com/onsi/ginkgo/config/*.go # gosub
Expand Down
1 change: 1 addition & 0 deletions packages/policy-server/spec
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ files:
- policy-server/cmd/policy-server/*.go # gosub
- policy-server/cmd/policy-server-internal/*.go # gosub
- policy-server/config/*.go # gosub
- policy-server/db/*.go # gosub
- policy-server/handlers/*.go # gosub
- policy-server/middleware/*.go # gosub
- policy-server/server_metrics/*.go # gosub
Expand Down
2 changes: 1 addition & 1 deletion packages/service-discovery-controller/spec
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ files:
- github.com/gogo/protobuf/gogoproto/*.go # gosub
- github.com/gogo/protobuf/proto/*.go # gosub
- github.com/gogo/protobuf/protoc-gen-gogo/descriptor/*.go # gosub
- github.com/nats-io/go-nats/*.go # gosub
- github.com/nats-io/go-nats/encoders/builtin/*.go # gosub
- github.com/nats-io/go-nats/util/*.go # gosub
- github.com/nats-io/nats/*.go # gosub
- github.com/nats-io/nuid/*.go # gosub
- github.com/nu7hatch/gouuid/*.go # gosub
- github.com/pivotal-cf/paraphernalia/secure/tlsconfig/*.go # gosub
Expand Down
1 change: 0 additions & 1 deletion src/github.com/nats-io/nats
Submodule nats deleted from 247b2a
7 changes: 0 additions & 7 deletions src/policy-server/store/migrations/migrate_adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,5 @@ var _ = Describe("MigrateAdapter", func() {
Expect(err).To(MatchError("down migration not supported"))
})
})
Context("when the passed in database is not a sqlx.DB", func() {
It("returns an error", func() {
fakeMigrationDb := &fakes.MigrationDb{}
_, err := migrateAdapter.ExecMax(fakeMigrationDb, "some-dialect", migrate.MemoryMigrationSource{}, migrate.Up, 0)
Expect(err).To(MatchError("unable to adapt for db migration"))
})
})
})
})
2 changes: 1 addition & 1 deletion src/route_populator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"syscall"
"time"

"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
)

var natsEndpoint = flag.String(
Expand Down
2 changes: 1 addition & 1 deletion src/service-discovery-controller/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"code.cloudfoundry.org/cf-networking-helpers/testsupport/ports"
"github.com/nats-io/gnatsd/server"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
Expand Down
2 changes: 1 addition & 1 deletion src/service-discovery-controller/mbus/fakes/nats_conn.go

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

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

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package mbus

import "github.com/nats-io/nats"
import "github.com/nats-io/go-nats"

type NatsConnWithUrlProvider struct {
Url string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package mbus_test
import (
"code.cloudfoundry.org/cf-networking-helpers/testsupport/ports"
"github.com/nats-io/gnatsd/server"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "service-discovery-controller/mbus"
Expand Down
6 changes: 1 addition & 5 deletions src/service-discovery-controller/mbus/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,10 @@ import (

"code.cloudfoundry.org/clock"
"code.cloudfoundry.org/lager"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
"github.com/pkg/errors"
)

const (
registerMessagesReceived = "registerMessagesReceived"
)

type ServiceDiscoveryStartMessage struct {
Id string `json:"id"`
Host string `json:"host"`
Expand Down
2 changes: 1 addition & 1 deletion src/service-discovery-controller/mbus/subscriber_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"code.cloudfoundry.org/clock/fakeclock"
"code.cloudfoundry.org/lager"
"github.com/nats-io/gnatsd/server"
"github.com/nats-io/nats"
"github.com/nats-io/go-nats"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/pkg/errors"
Expand Down
2 changes: 1 addition & 1 deletion src/test/performance-sd/nats_performance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/montanaflynn/stats"
"github.com/nats-io/gnatsd/server"
"github.com/nats-io/go-nats"
"github.com/nats-io/go-nats/bench"
"github.com/nats-io/nats-top/util"
"github.com/nats-io/nats/bench"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
Expand Down

0 comments on commit 45ac093

Please sign in to comment.