`QueryDatacenterOptions` was renamed to `QueryFailoverOptions` without creating an alias. This adds `QueryDatacenterOptions` back as an alias to `QueryFailoverOptions` and marks it is deprecated.
This commit is contained in:
parent
f5139f0c17
commit
13f8839924
|
@ -0,0 +1,5 @@
|
||||||
|
```release-note:bug
|
||||||
|
api: Fix a breaking change caused by renaming `QueryDatacenterOptions` to
|
||||||
|
`QueryFailoverOptions`. This adds `QueryDatacenterOptions` back as an alias to
|
||||||
|
`QueryFailoverOptions` and marks it as deprecated.
|
||||||
|
```
|
|
@ -17,6 +17,9 @@ type QueryFailoverOptions struct {
|
||||||
Targets []QueryFailoverTarget
|
Targets []QueryFailoverTarget
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Deprecated: use QueryFailoverOptions instead.
|
||||||
|
type QueryDatacenterOptions = QueryFailoverOptions
|
||||||
|
|
||||||
type QueryFailoverTarget struct {
|
type QueryFailoverTarget struct {
|
||||||
// PeerName specifies a peer to try during failover.
|
// PeerName specifies a peer to try during failover.
|
||||||
PeerName string
|
PeerName string
|
||||||
|
|
Loading…
Reference in New Issue