etcd icon indicating copy to clipboard operation
etcd copied to clipboard

client/pkg: fix revive unexported-return issue

Open carsontham opened this issue 6 months ago • 6 comments
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 UnsafeSet interface, instead of *unsafeSet struct
  • NewThreadsafeSet now returns a Set interface, instead of *tsafeSet struct

carsontham avatar May 10 '25 18:05 carsontham