Merge pull request #990 from opencloud-eu/dependabot/go_modules/github.com/nats-io/nats.go-1.43.0

build(deps): bump github.com/nats-io/nats.go from 1.42.0 to 1.43.0
This commit is contained in:
Ralf Haferkamp
2025-06-04 11:46:40 +02:00
committed by GitHub
6 changed files with 25 additions and 7 deletions

2
go.mod
View File

@@ -56,7 +56,7 @@ require (
github.com/mna/pigeon v1.3.0
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826
github.com/nats-io/nats-server/v2 v2.11.4
github.com/nats-io/nats.go v1.42.0
github.com/nats-io/nats.go v1.43.0
github.com/oklog/run v1.1.0
github.com/olekukonko/tablewriter v1.0.7
github.com/onsi/ginkgo v1.16.5

4
go.sum
View File

@@ -824,8 +824,8 @@ github.com/nats-io/jwt/v2 v2.7.4 h1:jXFuDDxs/GQjGDZGhNgH4tXzSUK6WQi2rsj4xmsNOtI=
github.com/nats-io/jwt/v2 v2.7.4/go.mod h1:me11pOkwObtcBNR8AiMrUbtVOUGkqYjMQZ6jnSdVUIA=
github.com/nats-io/nats-server/v2 v2.11.4 h1:oQhvy6He6ER926sGqIKBKuYHH4BGnUQCNb0Y5Qa+M54=
github.com/nats-io/nats-server/v2 v2.11.4/go.mod h1:jFnKKwbNeq6IfLHq+OMnl7vrFRihQ/MkhRbiWfjLdjU=
github.com/nats-io/nats.go v1.42.0 h1:ynIMupIOvf/ZWH/b2qda6WGKGNSjwOUutTpWRvAmhaM=
github.com/nats-io/nats.go v1.42.0/go.mod h1:iRWIPokVIFbVijxuMQq4y9ttaBTMe0SFdlZfMDd+33g=
github.com/nats-io/nats.go v1.43.0 h1:uRFZ2FEoRvP64+UUhaTokyS18XBCR/xM2vQZKO4i8ug=
github.com/nats-io/nats.go v1.43.0/go.mod h1:iRWIPokVIFbVijxuMQq4y9ttaBTMe0SFdlZfMDd+33g=
github.com/nats-io/nkeys v0.4.11 h1:q44qGV008kYd9W1b1nEBkNzvnWxtRSQ7A8BoqRrcfa0=
github.com/nats-io/nkeys v0.4.11/go.mod h1:szDimtgmfOi9n25JpfIdGw12tZFYXqhGxjhVxsatHVE=
github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw=

View File

@@ -23,7 +23,7 @@ A [Go](http://golang.org) client for the [NATS messaging system](https://nats.io
go get github.com/nats-io/nats.go@latest
# To get a specific version:
go get github.com/nats-io/nats.go@v1.42.0
go get github.com/nats-io/nats.go@v1.43.0
# Note that the latest major version for NATS Server is v2:
go get github.com/nats-io/nats-server/v2@latest

View File

@@ -1051,7 +1051,10 @@ func (kv *kvs) WatchFiltered(keys []string, opts ...WatchOpt) (KeyWatcher, error
w.initPending = delta
}
if w.received > w.initPending || delta == 0 {
w.initDoneTimer.Stop()
// Avoid possible race setting up timer.
if w.initDoneTimer != nil {
w.initDoneTimer.Stop()
}
w.initDone = true
w.updates <- nil
} else if w.initDoneTimer != nil {

View File

@@ -47,7 +47,7 @@ import (
// Default Constants
const (
Version = "1.42.0"
Version = "1.43.0"
DefaultURL = "nats://127.0.0.1:4222"
DefaultPort = 4222
DefaultMaxReconnect = 60
@@ -2292,6 +2292,21 @@ func (nc *Conn) ConnectedAddr() string {
return nc.conn.RemoteAddr().String()
}
// LocalAddr returns the local network address of the connection
func (nc *Conn) LocalAddr() string {
if nc == nil {
return _EMPTY_
}
nc.mu.RLock()
defer nc.mu.RUnlock()
if nc.status != CONNECTED {
return _EMPTY_
}
return nc.conn.LocalAddr().String()
}
// ConnectedServerId reports the connected server's Id
func (nc *Conn) ConnectedServerId() string {
if nc == nil {

2
vendor/modules.txt vendored
View File

@@ -1009,7 +1009,7 @@ github.com/nats-io/nats-server/v2/server/stree
github.com/nats-io/nats-server/v2/server/sysmem
github.com/nats-io/nats-server/v2/server/thw
github.com/nats-io/nats-server/v2/server/tpm
# github.com/nats-io/nats.go v1.42.0
# github.com/nats-io/nats.go v1.43.0
## explicit; go 1.23.0
github.com/nats-io/nats.go
github.com/nats-io/nats.go/encoders/builtin