adjust / rmq

Message queue system written in Go and backed by Redis
MIT License
1.57k stars 206 forks source link

Adds helper function for conn keepalive #13

Closed trevorprater closed 4 years ago

trevorprater commented 8 years ago

cleaner.KeepConnectionAlive is a useful helper function, particularly if you run it in a goroutine upon instantiation of a connection.

wellle commented 8 years ago

The name KeepConnectionAlive seems misleading, as no connection is being kept alive. Looking at the implementation, a better name might be CleanEvery.

But I'm not sure it's needed, as the function itself is pretty trivial. What's wrong with having the time.Tick loop in the caller?

wellle commented 4 years ago

Closing for being inactive and very old. Please let me know if this is still something you're interested in :v: