From 187fd0f5fa463a063cc44eebbb4c3a1dfbe40772 Mon Sep 17 00:00:00 2001 From: Carl Jackson Date: Thu, 24 Jul 2014 17:42:55 -0700 Subject: [PATCH] Add compatibility for YAML in Ruby 1.8 For Bad Reasons (tm), Ruby 1.8's YAML parser expects a lot more spaces than Ruby 1.9's does. Let's humor it and give it those spaces. --- bind/einhorn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bind/einhorn.go b/bind/einhorn.go index c61e322..e695c0e 100644 --- a/bind/einhorn.go +++ b/bind/einhorn.go @@ -70,7 +70,7 @@ func einhornBind(n int) (net.Listener, error) { } // Fun story: this is actually YAML, not JSON. -const ackMsg = `{"command":"worker:ack","pid":%d}` + "\n" +const ackMsg = `{"command": "worker:ack", "pid": %d}` + "\n" func einhornAck() { if !usingEinhorn() {