From 070154d506238f6712e0a327918b1e797106d134 Mon Sep 17 00:00:00 2001
From: Pavel Karpy
Date: Fri, 14 Apr 2023 14:54:28 +0300
Subject: [PATCH] [#247] client: Drop reputation related RPCs
Signed-off-by: Pavel Karpy
---
pkg/core/client/client.go | 2 --
pkg/network/cache/multi.go | 18 ------------------
2 files changed, 20 deletions(-)
diff --git a/pkg/core/client/client.go b/pkg/core/client/client.go
index d74adddcc..98e9d6367 100644
--- a/pkg/core/client/client.go
+++ b/pkg/core/client/client.go
@@ -19,8 +19,6 @@ type Client interface {
ObjectSearchInit(context.Context, client.PrmObjectSearch) (*client.ObjectListReader, error)
ObjectRangeInit(context.Context, client.PrmObjectRange) (*client.ObjectRangeReader, error)
ObjectHash(context.Context, client.PrmObjectHash) (*client.ResObjectHash, error)
- AnnounceLocalTrust(context.Context, client.PrmAnnounceLocalTrust) (*client.ResAnnounceLocalTrust, error)
- AnnounceIntermediateTrust(context.Context, client.PrmAnnounceIntermediateTrust) (*client.ResAnnounceIntermediateTrust, error)
ExecRaw(f func(client *rawclient.Client) error) error
Close() error
}
diff --git a/pkg/network/cache/multi.go b/pkg/network/cache/multi.go
index 39c191b78..2f698912c 100644
--- a/pkg/network/cache/multi.go
+++ b/pkg/network/cache/multi.go
@@ -277,24 +277,6 @@ func (x *multiClient) ObjectSearchInit(ctx context.Context, p client.PrmObjectSe
return
}
-func (x *multiClient) AnnounceLocalTrust(ctx context.Context, prm client.PrmAnnounceLocalTrust) (res *client.ResAnnounceLocalTrust, err error) {
- err = x.iterateClients(ctx, func(c clientcore.Client) error {
- res, err = c.AnnounceLocalTrust(ctx, prm)
- return err
- })
-
- return
-}
-
-func (x *multiClient) AnnounceIntermediateTrust(ctx context.Context, prm client.PrmAnnounceIntermediateTrust) (res *client.ResAnnounceIntermediateTrust, err error) {
- err = x.iterateClients(ctx, func(c clientcore.Client) error {
- res, err = c.AnnounceIntermediateTrust(ctx, prm)
- return err
- })
-
- return
-}
-
func (x *multiClient) ExecRaw(f func(client *rawclient.Client) error) error {
panic("multiClient.ExecRaw() must not be called")
}