Skip to content

Conversation

@JASKevinWhite
Copy link

Change the registry accessor functions in bootstrap/client (ASN(), DNS(), IPv4(), IPv6()) to call c.freshenFromCache with the corresponding RegistryType.

Previously, all types tried to freshen ServiceProvider, which wouldn't have existed if you hadn't accessed that Registry, and wouldn't cause the registry you asked for to be added to the cache. This means the disk cache wasn't used for any type other than ServiceProvider.

Change all uses of ioutil.* to the calls in os.* and io.*.

In the comments for bootstrap/client.go, change "b := bootstrap.NewClient()" to "b := &bootstrap.Client{}" because bootstrap.NewClient() deesn't exist.

…S(), IPv4(), IPv6()) to call c.freshenFromCache with the corresponding RegistryType.

Previously, all types tried to freshen ServiceProvider, which wouldn't have existed if you hadn't accessed that Registry, and wouldn't cause the registry you asked for to be added to the cache. This means the disk cache wasn't used for any type other than ServiceProvider

Change all uses of ioutil.* to the calls in os.* and io.*.

In the comments for bootstrap/client.go, change "b := bootstrap.NewClient()" to "b := &bootstrap.Client{}" because bootstrap.NewClient() deesn't exist.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant