Skip to content

Compatibility with current versions of nats #46

@mar1ged

Description

@mar1ged

When I use nats-top with a current version of nats it complains and fails:

8934] 2020/05/24 22:09:23.784078 [ERR] 127.0.0.1:37908 - cid:5 - Client parser ERROR, state=0, i=0: proto='"\x16\x03\x01\x00\u007f\x01\x00\x00{\x03\x03\xdb\xe6\xb3&\"k\x9b\a\xa9s\xee\a(V\xcc~4\xcek\xa5\x02"...'
[8934] 2020/05/24 22:09:23.784087 [DBG] 127.0.0.1:37908 - cid:5 - Client connection closed: Protocol Violation

If I try to compile nats-top it doesn't work either:

./nats-top.go:114:17: cannot use sortOpt (type "github.com/nats-io/gnatsd/server".SortOpt) as type "github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server".SortOpt in assignment
./nats-top.go:348:3: cannot use &"github.com/nats-io/gnatsd/server".Varz literal (type *"github.com/nats-io/gnatsd/server".Varz) as type *"github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server".Varz in field value
./nats-top.go:349:3: cannot use &"github.com/nats-io/gnatsd/server".Connz literal (type *"github.com/nats-io/gnatsd/server".Connz) as type *"github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server".Connz in field value
./nats-top.go:433:22: cannot use sortOpt (type "github.com/nats-io/gnatsd/server".SortOpt) as type "github.com/nats-io/nats-top/vendor/github.com/nats-io/gnatsd/server".SortOpt in assignment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions