From d9b4ac608376f1c4d271571262c73392cd7a81ac Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Wed, 29 Apr 2015 05:56:39 +0000 Subject: [PATCH] Extract default mux worker timeout in a constant --- lib/uh/wm/workers/mux.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/uh/wm/workers/mux.rb b/lib/uh/wm/workers/mux.rb index 548ed0d..cc8c691 100644 --- a/lib/uh/wm/workers/mux.rb +++ b/lib/uh/wm/workers/mux.rb @@ -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