diff --git a/CHANGELOG b/CHANGELOG index fd201d7a..decf4dee 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.9.2] - 2020-10-23 +### Change +* ETCD discovery now sets the IsOwner property when updating the peers list. + ## [0.9.1] - 2020-10-19 ### Change * Fix GUBER_PEER_PICKER_HASH and GUBER_PEER_PICKER diff --git a/etcd.go b/etcd.go index ddf2b977..b7d24f9a 100644 --- a/etcd.go +++ b/etcd.go @@ -322,7 +322,11 @@ func (e *EtcdPool) callOnUpdate() { var peers []PeerInfo for k := range e.peers { - peers = append(peers, PeerInfo{Address: k}) + if k == e.conf.AdvertiseAddress { + peers = append(peers, PeerInfo{Address: k, IsOwner: true}) + } else { + peers = append(peers, PeerInfo{Address: k}) + } } e.conf.OnUpdate(peers) diff --git a/version b/version index f374f666..2003b639 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.9.1 +0.9.2