Skip to content

Commit

Permalink
Merge pull request #235 from trigun117/master
Browse files Browse the repository at this point in the history
Fixed gofmt, go_vet, misspell, ineffassign
  • Loading branch information
Patrick committed May 12, 2018
2 parents 2c3c8cf + c8e39ad commit 31879d3
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion net2/base_connection_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ func (s *BaseConnectionPoolSuite) TestRecycleConnections(c *C) {
c.Assert(SameConnection(n3, c1), IsFalse)
c.Assert(SameConnection(n3, c3), IsTrue)

n4, err := pool.Get("foo", "bar")
n4, _ := pool.Get("foo", "bar")
c.Assert(dialer.MaxId(), Equals, 5)
c.Assert(n4.RawConn().(*mockConn).Id(), Equals, 5)
}
Expand Down
2 changes: 1 addition & 1 deletion net2/http2/simple_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func NewSimplePool(addr string, params ConnectionParams) *SimplePool {
if params.UseSSL {
transport.TLSClientConfig = params.TLSClientConfig

// Silenty ignore error for now, but probably need to change api
// Silently ignore error for now, but probably need to change api
// to return error.
_ = http2.ConfigureTransport(transport)
}
Expand Down
2 changes: 1 addition & 1 deletion resource_pool/simple_resource_pool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ func (s *SimpleResourcePoolSuite) TestRecycleHandles(c *C) {
c.Assert(err, IsNil)
CheckSameConnection(c, n3, c3)

n4, err := pool.Get("bar")
n4, _ := pool.Get("bar")
c.Assert(dialer.MaxId(), Equals, 5)
CheckId(c, n4, 5)
}
Expand Down
1 change: 0 additions & 1 deletion sync2/boundedrwlock.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ func (rw *BoundedRWLock) processQueue() {
}
}
}
return
}

// A waiting entity, writer or reader.
Expand Down

0 comments on commit 31879d3

Please sign in to comment.