feat(thoth): cached ip to asn checker

Signed-off-by: Xe Iaso <me@xeiaso.net>
This commit is contained in:
Xe Iaso
2025-05-21 11:27:53 -04:00
parent 946557b378
commit 315253dce7
6 changed files with 82 additions and 2 deletions

View File

@@ -60,7 +60,7 @@ func New(ctx context.Context, thothURL, apiToken string) (*Client, error) {
return &Client{
conn: conn,
health: hc,
iptoasn: iptoasnv1.NewIpToASNServiceClient(conn),
iptoasn: NewIpToASNWithCache(iptoasnv1.NewIpToASNServiceClient(conn)),
}, nil
}