Skip to content

Commit e7275e0

Browse files
SC client supports the setting of diffAzAddress for pool (#76)
* SC client supports the setting of diffAzAddress for pool
1 parent 1245cde commit e7275e0

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ func NewClient(opt Options) (*Client, error) {
146146
Protocol: c.protocol,
147147
Path: MSAPIPath + ReadinessPath,
148148
},
149+
DiffAzEndpoints: opt.DiffAzEndpoints,
149150
})
150151
return c, nil
151152
}

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.20
44

55
require (
66
github.com/cenkalti/backoff/v4 v4.1.1
7-
github.com/go-chassis/cari v0.9.1-0.20250322063348-41f1988548c4
7+
github.com/go-chassis/cari v0.9.1-0.20250703032518-a1c3e9de70ad
88
github.com/go-chassis/foundation v0.4.0
99
github.com/go-chassis/openlog v1.1.3
1010
github.com/gorilla/websocket v1.4.3-0.20210424162022-e8629af678b7

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
66
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
77
github.com/deckarep/golang-set v1.7.1 h1:SCQV0S6gTtp6itiFrTqI+pfmJ4LN85S1YzhDf9rTHJQ=
88
github.com/deckarep/golang-set v1.7.1/go.mod h1:93vsz/8Wt4joVM7c2AVqh+YRMiUSc14yDtF28KmMOgQ=
9-
github.com/go-chassis/cari v0.9.1-0.20250322063348-41f1988548c4 h1:aU4lCp/RAk3CtR7CeMhJW2kkqJgRP1x9m/tsrRTQdgQ=
10-
github.com/go-chassis/cari v0.9.1-0.20250322063348-41f1988548c4/go.mod h1:ibqLyh+Q+1n9PlldW3glD9G+2s/yeSyVMCCkQWKRwuE=
9+
github.com/go-chassis/cari v0.9.1-0.20250703032518-a1c3e9de70ad h1:7grqGrSTj4++a6cOh+s2pBhp6TXsoTYTkyBFMZ5jcE4=
10+
github.com/go-chassis/cari v0.9.1-0.20250703032518-a1c3e9de70ad/go.mod h1:ibqLyh+Q+1n9PlldW3glD9G+2s/yeSyVMCCkQWKRwuE=
1111
github.com/go-chassis/foundation v0.4.0 h1:z0xETnSxF+vRXWjoIhOdzt6rywjZ4sB++utEl4YgWEY=
1212
github.com/go-chassis/foundation v0.4.0/go.mod h1:6NsIUaHghTFRGfCBcZN011zl196F6OR5QvD9N+P4oWU=
1313
github.com/go-chassis/openlog v1.1.3 h1:XqIOvZ8YPJ9o9lLtLBskQNNWolK5kC6a4Sv7r4s9sZ4=

options.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ import (
1111

1212
// Options is the list of dynamic parameter's which can be passed to the Client while creating a new client
1313
type Options struct {
14-
Endpoints []string
15-
EnableSSL bool
16-
Timeout time.Duration
17-
TLSConfig *tls.Config
14+
DiffAzEndpoints []string
15+
Endpoints []string
16+
EnableSSL bool
17+
Timeout time.Duration
18+
TLSConfig *tls.Config
1819
// Other options can be stored in a context
1920
Context context.Context
2021
Compressed bool

0 commit comments

Comments
 (0)