Skip to content

Commit 83a9ea6

Browse files
committed
Use correct factory method
1 parent be39a0a commit 83a9ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/concurrent/actor/utils/pool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def on_message(message)
4343
envelope_to_redirect = if envelope.future
4444
envelope
4545
else
46-
Envelope.new(envelope.message, Concurrent::Promises.future, envelope.sender, envelope.address)
46+
Envelope.new(envelope.message, Promises.resolvable_future, envelope.sender, envelope.address)
4747
end
4848
envelope_to_redirect.future.on_fulfillment! { @balancer << :subscribe } # TODO check safety of @balancer reading
4949
redirect @balancer, envelope_to_redirect

0 commit comments

Comments
 (0)