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 Workers
|
||||
class Mux < Base
|
||||
def initialize timeout: 1
|
||||
TIMEOUT_DEFAULT = 1
|
||||
|
||||
def initialize timeout: TIMEOUT_DEFAULT
|
||||
super
|
||||
@timeout = timeout
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user