Extract default mux worker timeout in a constant
This commit is contained in:
1 parent
d24f25bbbe
commit
d9b4ac6083
1 file changed
+3
-1
@@ -2,7 +2,9 @@ module Uh
|
|||||||
module WM
|
module WM
|
||||||
module Workers
|
module Workers
|
||||||
class Mux < Base
|
class Mux < Base
|
||||||
def initialize timeout: 1
|
TIMEOUT_DEFAULT = 1
|
||||||
|
|
||||||
|
def initialize timeout: TIMEOUT_DEFAULT
|
||||||
super
|
super
|
||||||
@timeout = timeout
|
@timeout = timeout
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user