Re: [go-nuts] Urgent: race condition with ticker channels

2017-11-06 Thread Ian Davis
On Mon, 6 Nov 2017, at 12:14 PM, arunabh.ar...@gmail.com wrote: > Hi, > > I am fairly new to Golang, so please excuse if this is a silly > question. I could not find any answers on the web.> > Code portion A: > > rf.mu.Lock() > rf.electionTicker = time.NewTicker(rf.currentTimeout) > <===

[go-nuts] Urgent: race condition with ticker channels

2017-11-06 Thread arunabh . arnav
Hi, I am fairly new to Golang, so please excuse if this is a silly question. I could not find any answers on the web. Code portion A: rf.mu.Lock() rf.electionTicker = time.NewTicker(rf.currentTimeout)