Support configuring poll duration
Go fmt cleanup