etcd
etcd copied to clipboard
client/pkg: fix revive unexported-return issue
trafficstars
Fixes part of #18370
This PR updates the client/pkg to fix unexported-return linter issue.
In this pull request, I introduced a UnsafeSet interface that contains the original Set interface, along with a method ContainsAll(). This was to avoid making changes to this unsafeSet unit-test here.
The changes are:
- NewUnsafeSet() now returns an
UnsafeSetinterface, instead of*unsafeSetstruct - NewThreadsafeSet now returns a
Setinterface, instead of*tsafeSetstruct