These are chat archives for rust-lang/rust

8th
Oct 2016
songhao
@a6802739
Oct 08 2016 09:35
hey,guys. I have a confusion here
func (s *raftScheduler) Start(stopper *stop.Stopper) {
    for i := 0; i < cap(s.notify); i++ {
        stopper.RunWorker(func() {
            s.worker(stopper)
        })
    }
}
the code above process raft command concurrently, how does it guarantee the order of committed raft entries to apply into rocksdb?
Jonas Platte
@jplatte
Oct 08 2016 10:30
@a6802739 You're in the Rust gitter here, I doubt many people will be able to help you with Go code ^^
songhao
@a6802739
Oct 08 2016 11:30
^^, sorry. @jplatte
mhsjlw
@mhsjlw
Oct 08 2016 12:07
lol
I like snake case... Golang hurts my eyes
I guess I'm never working at Google
Michael Howell
@notriddle
Oct 08 2016 16:55
Hate to break it to you, but Rust uses UpperCamelCase for type names.
mhsjlw
@mhsjlw
Oct 08 2016 17:07
yeah yeah I know
It's just for functions
like in ruby, module names WithThisCase are fine, and rust has structs that are in ThisCase but functions are in this_case which is how I like it :D