4 Commits

Author SHA1 Message Date
Mariano Cano
1ae78b803d Make poolhttp thread safe. 2025-07-02 12:46:32 -07:00
Mariano Cano
2b13b82ee3 Apply suggestions from code review
Co-authored-by: Herman Slatman <hslatman@users.noreply.github.com>
2025-07-02 10:48:37 -07:00
Mariano Cano
f3c2e94576 Address linter errors 2025-07-01 14:58:57 -07:00
Mariano Cano
d4fd467e8a Memory improvements
This commit replaces the client in provisioners and webhooks with an
interface. Then it implements the interface using the new poolhttp
package. This package implements the HTTPClient interface but it is
backed by a sync.Pool, this improves memory, allowing the GC to clean
more memory. It also removes the timer in the keystore to avoid
having extra goroutines if a provisioner goes away. This commit avoids
creating the templates func multiple times, reducing some memory in the
heap.
2025-07-01 13:53:52 -07:00