[#324] Close nns resolver after use #327

Merged
alexvanin merged 1 commit from mbiryukova/frostfs-s3-gw:feature/close_nns_resolver into master 2024-03-04 09:06:28 +00:00

View file

@ -28,6 +28,7 @@ func ResolveContractHash(contractHash, rpcAddress string) (util.Uint160, error)
if err := nns.Dial(rpcAddress); err != nil {
return util.Uint160{}, fmt.Errorf("dial nns %s: %w", rpcAddress, err)
}
defer nns.Close()
return nns.ResolveContractHash(domain)
}