Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indentation and remove unnecessary instructions #138

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,7 @@ func (ch *Channel) shutdown(e *Error) {
for _, c := range ch.closes {
c <- e
}
}

// Notify RPC if we're selecting
if e != nil {
// Notify RPC if we're selecting
ch.errors <- e
}

Expand Down
4 changes: 2 additions & 2 deletions connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,8 @@ func (c *Connection) openTune(config Config, auth Authentication) error {
config.Properties["capabilities"] = Table{
"connection.blocked": true,
"consumer_cancel_notify": true,
"basic.nack": true,
"publisher_confirms": true,
"basic.nack": true,
"publisher_confirms": true,
}

ok := &connectionStartOk{
Expand Down
2 changes: 0 additions & 2 deletions uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,6 @@ func (uri URI) String() string {
}
}

authority.Host = net.JoinHostPort(uri.Host, strconv.Itoa(uri.Port))

if defaultPort, found := schemePorts[uri.Scheme]; !found || defaultPort != uri.Port {
authority.Host = net.JoinHostPort(uri.Host, strconv.Itoa(uri.Port))
} else {
Expand Down