all: Fix unused method receiver (further) (#8466)

Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
This commit is contained in:
deepsource-autofix[bot]
2022-07-28 17:55:29 +02:00
committed by GitHub
co-authored by deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
parent 79f8bd0f33
commit 81d8fa1cb5
6 changed files with 13 additions and 13 deletions
+6 -6
View File
@@ -83,15 +83,15 @@ func (f *fakeDiscovery) Lookup(_ context.Context, _ protocol.DeviceID) (addresse
return f.addresses, nil
}
func (f *fakeDiscovery) Error() error {
func (*fakeDiscovery) Error() error {
return nil
}
func (f *fakeDiscovery) String() string {
func (*fakeDiscovery) String() string {
return "fake"
}
func (f *fakeDiscovery) Cache() map[protocol.DeviceID]CacheEntry {
func (*fakeDiscovery) Cache() map[protocol.DeviceID]CacheEntry {
return nil
}
@@ -133,14 +133,14 @@ func (f *slowDiscovery) Lookup(_ context.Context, _ protocol.DeviceID) (addresse
return nil, nil
}
func (f *slowDiscovery) Error() error {
func (*slowDiscovery) Error() error {
return nil
}
func (f *slowDiscovery) String() string {
func (*slowDiscovery) String() string {
return "fake"
}
func (f *slowDiscovery) Cache() map[protocol.DeviceID]CacheEntry {
func (*slowDiscovery) Cache() map[protocol.DeviceID]CacheEntry {
return nil
}