Added threading support to FileServiceClient to make discovery_api thread-local.
Motivation
Fixes a threading issue where multiple threads could simultaneously access self._discovery_api, leading to bugs. Making discovery_api thread-local gives each thread its own instance.
Resolves: #327
Type of change
Bug fix
Checklist
[x] I have performed a self-review of my code.
[x] I have added detailed comments to my code where applicable.
[x] I have verified that my change does not break existing code.
[x] My PR is based on the latest changes of the main branch.
Description of the change
Added threading support to
FileServiceClient
to makediscovery_api
thread-local.Motivation
Fixes a threading issue where multiple threads could simultaneously access
self._discovery_api
, leading to bugs. Makingdiscovery_api
thread-local gives each thread its own instance.Resolves: #327
Type of change
Bug fix
Checklist