progrium/registrator — pull request #43 by dminkovsky (2014-10-20 21:14:00+00:00)
Title: Run initial `bridge.Add` in a goroutine

The following just happened to me:

* A service was set to be registered at startup.
* `bridge.Add()` was called at the line in this patch
* However, there was a problem with registration, so initialization was stalled in [backed off `retry`](https://github.com/progrium/registrator/blob/51b069973a619a1a2eaa014c3665911837346ca9/bridge.go#L157) in the main goroutine .
* With init stalled, the Docker api channel was never opened, and it looked like registrator was having problems listening to Docker events.

So maybe just run the initial registrations in a goroutine too?