Browse Source

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.
Carl Jackson 12 years ago
parent
commit
187fd0f5fa
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      bind/einhorn.go

+ 1
- 1
bind/einhorn.go View File

@ -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() {


Loading…
Cancel
Save