Skip to content

Commit

Permalink
all: gofmt (#1145)
Browse files Browse the repository at this point in the history
Run standard gofmt command on project root.

- go version go1.10.3 darwin/amd64

Signed-off-by: ia <isaac.ardis@gmail.com>
  • Loading branch information
whilei authored and Zariel committed Jun 17, 2018
1 parent a440a5b commit cde3535
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster.go
Expand Up @@ -129,7 +129,7 @@ type ClusterConfig struct {
// created from this session.
ConnectObserver ConnectObserver

// FrameHeaderObserver will set the provided frame header observer on all frames' headers created from this session.
// FrameHeaderObserver will set the provided frame header observer on all frames' headers created from this session.
// Use it to collect metrics / stats from frames by providing an implementation of FrameHeaderObserver.
FrameHeaderObserver FrameHeaderObserver

Expand Down
2 changes: 1 addition & 1 deletion internal/streams/streams.go
Expand Up @@ -105,7 +105,7 @@ func (s *IDGenerator) String() string {
buf = append(buf, bitfmt(bits)...)
buf = append(buf, ' ')
}
return string(buf[:size-1 : size-1])
return string(buf[: size-1 : size-1])
}

func (s *IDGenerator) Clear(stream int) (inuse bool) {
Expand Down
2 changes: 1 addition & 1 deletion policies.go
Expand Up @@ -117,7 +117,7 @@ func (c *cowHostList) remove(ip net.IP) bool {
return false
}

newL = newL[:size-1 : size-1]
newL = newL[: size-1 : size-1]
c.list.Store(&newL)
c.mu.Unlock()

Expand Down

0 comments on commit cde3535

Please sign in to comment.