From bcf6090e9ffd6e24ddcbd0256105df236cdb5f8b Mon Sep 17 00:00:00 2001 From: Igor Anic Date: Mon, 6 Dec 2021 20:23:38 +0100 Subject: [PATCH] upgrade to mantil.go v0.1.7 To get NATS connection names in monitoring. --- cli/log/net/publisher.go | 1 + go.mod | 4 +++- go.sum | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/cli/log/net/publisher.go b/cli/log/net/publisher.go index ee868a81..b0f42994 100644 --- a/cli/log/net/publisher.go +++ b/cli/log/net/publisher.go @@ -47,6 +47,7 @@ func natsConnect(userJWTorCredsFile string, options ...nats.Option) (*nats.Conn, }) options = append(options, opt) } + options = append(options, nats.Name("mantil/cli/log/net")) return nats.Connect(defaultNatsURL, options...) } diff --git a/go.mod b/go.mod index 9edf53cd..aa2c7346 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,7 @@ require ( github.com/kataras/jwt v0.1.2 github.com/klauspost/compress v1.13.6 // indirect github.com/manifoldco/promptui v0.8.0 - github.com/mantil-io/mantil.go v0.1.3-0.20211125124945-bd8269e44ff7 + github.com/mantil-io/mantil.go v0.1.7 github.com/mattn/go-colorable v0.1.11 github.com/moul/http2curl v1.0.0 // indirect github.com/nats-io/jsm.go v0.0.26 @@ -66,3 +66,5 @@ require ( golang.org/x/time v0.0.0-20200630173020-3af7569d3a1e // indirect gopkg.in/yaml.v2 v2.4.0 ) + +//replace github.com/mantil-io/mantil.go => ../mantil.go diff --git a/go.sum b/go.sum index ed214463..a09c9e42 100644 --- a/go.sum +++ b/go.sum @@ -362,6 +362,8 @@ github.com/manifoldco/promptui v0.8.0 h1:R95mMF+McvXZQ7j1g8ucVZE1gLP3Sv6j9vlF9ky github.com/manifoldco/promptui v0.8.0/go.mod h1:n4zTdgP0vr0S3w7/O/g98U+e0gwLScEXGwov2nIKuGQ= github.com/mantil-io/mantil.go v0.1.3-0.20211125124945-bd8269e44ff7 h1:w0mBTBqcqyA4KhfmaR+KmlBUU7lDvMDeEafqNub7bn8= github.com/mantil-io/mantil.go v0.1.3-0.20211125124945-bd8269e44ff7/go.mod h1:cRTxZIbJ86YO4lrWrjGzUziVv7Mmi/khpFtckWz1498= +github.com/mantil-io/mantil.go v0.1.7 h1:X3rt3gNB56Nxnx/HEEgUPx1I87zHdlldZxJThiiPqF4= +github.com/mantil-io/mantil.go v0.1.7/go.mod h1:iXF1rhcmSHb8pTj3b2uaySxHhBoikVpo/Zifa6DuwKE= github.com/matryer/is v1.2.0 h1:92UTHpy8CDwaJ08GqLDzhhuixiBUUD1p3AU6PHddz4A= github.com/matryer/is v1.2.0/go.mod h1:2fLPjFQM9rhQ15aVEtbuwhJinnOqrmgXPNdZsdwlWXA= github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= @@ -388,6 +390,8 @@ github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0Qu github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= +github.com/mitchellh/mapstructure v1.4.2 h1:6h7AQ0yhTcIsmFmnAwQls75jp2Gzs4iB8W7pjMO+rqo= +github.com/mitchellh/mapstructure v1.4.2/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=