change PollInterval type to time.Duration