exchange
exchange copied to clipboard
Use one global HTTP Client and Cache
It was implicit, but New overwritten the already initialized cache.
Other changes:
- Simplify cacheDuration calculation with Time.Truncate
- Use one parseDate for all date parsing, add error reporting.
- Simplify and remove inefficiencies in processQuery.