Open criverc opened 3 years ago
So that it is not needed to provide them again for every call. i.e. Instead of doing this:
c = new ConsulClient(); c.getCatalogService(someServiceName, someTag, QueryParams.DEFAULT, someACLToken);
do this:
c = new ConsulClient(QueryParams.DEFAULT, someACLToken); c.getCatalogService(someServiceName, someTag);
Absolutely yes. It will save me a lot of keystrokes.
I would like to raise a PR if the maintainers want something like this.
So that it is not needed to provide them again for every call. i.e. Instead of doing this:
c = new ConsulClient(); c.getCatalogService(someServiceName, someTag, QueryParams.DEFAULT, someACLToken);
do this:
c = new ConsulClient(QueryParams.DEFAULT, someACLToken); c.getCatalogService(someServiceName, someTag);