Decouple actors and rpc invoker in morph #781
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 project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#781
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?
Morph connection/subscription/reconnection logic is about the invoker: just an RPC endpoint.
Actor is a separate component: how the transactions shoud be signed.
Currently contract-specific clients use morh.Invoke (notary invoke) and signers are determined inside the morph client
I suggest changing this logic:
ActorSource
can provide necessary actors, which will be passed as argument to all invocations.This will help to adopt interface from the generated bindings for contracts.
Well, auto generated bindings are not good enough.
Example 1:
containersOf
returns sessionID and iterator, they should be used with otherActor
methods to get results.Example 2:
container.get
returns []stackitem array, that must be parsed.So there is nothing better IMHO in compare with current client.