lib/swift/fiber_connection_pool.rb in swift-1.1.0 vs lib/swift/fiber_connection_pool.rb in swift-1.2.0

- old
+ new

@@ -1,9 +1,7 @@ # Based on EM::Synchrony::ConnectionPool -require 'swift/synchrony' - module Swift class FiberConnectionPool def initialize opts, &block @reserved = {} # map of in-progress connections @@ -74,21 +72,6 @@ conn.__send__(method, *args, &blk) end end end end # FiberConnectionPool - - class Adapter::Sql - def serialized_transaction &block - Swift.scopes.push(self) - execute('begin') - res = yield(self) - execute('commit') - res - rescue => e - execute('rollback') - raise e - ensure - Swift.scopes.pop - end - end # Adapter::Sql end # Swift