Skip to content
Permalink
Browse files

add todo comment

License: MIT
Signed-off-by: Adrian Lanzafame <adrianlanzafame92@gmail.com>
  • Loading branch information...
lanzafame committed Mar 31, 2019
1 parent 1349e99 commit 0041f5cb8f1e39074486bf1ef6225ad60331d9a6
Showing with 2 additions and 1 deletion.
  1. +2 −1 cluster.go
@@ -297,6 +297,7 @@ func (c *Cluster) alertsHandler() {
case <-c.ctx.Done():
return
case alrt := <-c.monitor.Alerts():
// TODO(lanzafame): create a psuedo-leader election for crdts
// only the leader handles alerts
leader, err := c.consensus.Leader(c.ctx)
if err == nil && leader == c.id {
@@ -602,7 +603,7 @@ func (c *Cluster) ID(ctx context.Context) *api.ID {
ClusterPeersAddresses: c.peerManager.PeersAddresses(peers),
Version: version.Version.String(),
RPCProtocolVersion: version.RPCProtocol,
IPFS: ipfsID,
IPFS: *ipfsID,
Peername: c.config.Peername,
}
}

0 comments on commit 0041f5c

Please sign in to comment.
You can’t perform that action at this time.