Skip to content

Commit

Permalink
fixup! Channel pool
Browse files Browse the repository at this point in the history
  • Loading branch information
carlhoerberg committed Feb 17, 2024
1 parent e9444fa commit b79013d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion spec/amqproxy_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ describe AMQProxy::Server do
s.client_connections.should eq 1
s.upstream_connections.should eq 1
end
# sleep 0.1
end
s.client_connections.should eq 0
s.upstream_connections.should eq 1
Expand Down
9 changes: 0 additions & 9 deletions src/amqproxy/client.cr
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,6 @@ require "./version"
require "./upstream"
require "./records"

# Be able to overwrite channel id
module AMQ
module Protocol
abstract struct Frame
setter channel
end
end
end

module AMQProxy
class Client
getter credentials : Credentials
Expand Down
9 changes: 9 additions & 0 deletions src/amqproxy/records.cr
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,12 @@ module AMQProxy

record Credentials, user : String, password : String, vhost : String
end

# Be able to overwrite channel id
module AMQ
module Protocol
abstract struct Frame
setter channel
end
end
end

0 comments on commit b79013d

Please sign in to comment.