TimothyYe / godns

A dynamic DNS client tool that supports AliDNS, Cloudflare, Google Domains, DNSPod, HE.net & DuckDNS & DreamHost, etc, written in Go.
https://timothyye.github.io/godns/
Apache License 2.0
1.5k stars 220 forks source link

Pull runOnce logic out of handler #170

Closed drewgingerich closed 2 years ago

drewgingerich commented 2 years ago

This PR presents a small refactor that pulls runOnce logic out of Handler.DomainLoop by exporting the single run Handler.domainLoop function. This requires a function rename to avoid a naming clash.

TimothyYe commented 2 years ago

It's a nice solution, thanks a lot!