Skip to content

Commit

Permalink
var -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Jul 11, 2016
1 parent 566adec commit f5fd76a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions common/protocol/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ const (
RequestCommandUDP = RequestCommand(0x02)
)

type RequestOption byte

const (
RequestOptionChunkStream = RequestOption(0x01)
RequestOptionConnectionReuse = RequestOption(0x02)
)

type RequestOption byte

func (this RequestOption) Has(option RequestOption) bool {
return (this & option) == option
}
Expand Down Expand Up @@ -49,7 +49,7 @@ func (this *RequestHeader) Destination() v2net.Destination {

type ResponseOption byte

var (
const (
ResponseOptionConnectionReuse = ResponseOption(1)
)

Expand Down

0 comments on commit f5fd76a

Please sign in to comment.