Hi all,

Package github.com/hashicorp/raft contains the following block of code:


=====
const (
        rpcAppendEntries uint8 = iota
        rpcRequestVote
        rpcInstallSnapshot

        // DefaultTimeoutScale is the default TimeoutScale in a 
NetworkTransport.
        DefaultTimeoutScale = 256 * 1024 // 256KB

        // rpcMaxPipeline controls the maximum number of outstanding
        // AppendEntries RPC calls.
        rpcMaxPipeline = 128
)
=====


Here, TypeOf(DefaultTimeoutScale) == "int". However, running godoc against this package outputs the following:


=====
CONSTANTS

const (

// DefaultTimeoutScale is the default TimeoutScale in a NetworkTransport.
    DefaultTimeoutScale uint8 = 256 * 1024 // 256KB

)
=====

Note the uint8 type.

Bug or am I missing something here?

(go version go1.7rc6 linux/amd64)

--
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to