mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: remove debug logging
This commit is contained in:
parent
cf91035a36
commit
db8e4a2fc0
@ -3,7 +3,6 @@ package raft
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"log"
|
||||
|
||||
"code.google.com/p/go.net/context"
|
||||
pb "github.com/coreos/etcd/raft/raftpb"
|
||||
@ -72,13 +71,11 @@ func (n *Node) run(r *raft) {
|
||||
var prev Ready
|
||||
for {
|
||||
if r.hasLeader() {
|
||||
log.Printf("raft: found leader %#x - unblocking proposals", r.lead)
|
||||
propc = n.propc
|
||||
} else {
|
||||
// We cannot accept proposals because we don't know who
|
||||
// to send them to, so we'll apply back-pressure and
|
||||
// block senders.
|
||||
log.Println("raft: no leader - blocking proposals")
|
||||
propc = nil
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user