Adjust localClient interface to put invokers/actors on top of it #97
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#97
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original issue: https://github.com/nspcc-dev/neofs-node/issues/2233
Is your feature request related to a problem? Please describe.
I'm always frustrated when I look at the
localClient
in neofs-adm. It tries to mimic old RPC client APIs and contains a lot of duplicating code inside (and outside where it's used,getCandidateRegisterPrice
ornnsIsAvailable
for example).Describe the solution you'd like
It can be slimmed down by implementing enough of API for invokers/actors that we have. Then they will work on top of this local client easily providing contract-specific things.
Describe alternatives you've considered
Keeping it all the way it is now, nothing good here.
Additional context
#2232, the switch there is absolutely useless.
It became much better after #750 and neo-go update. The current interface is pretty generic
type Client interface {
and there are almost no custom logic. The exception is
awaitTx
where we persist changes.