mirror of
https://github.com/nspcc-dev/neofs-api-go.git
synced 2026-03-01 04:28:56 +00:00
Split the stages of work with the Client #65
Loading…
Add table
Add a link
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?
Originally created by @cthulhu-rider on GitHub (Mar 7, 2022).
In current Client implementation connection is opened once during first
Initcall. I propose to highlight the working method:The method should be called before the work. This method is going to be called during the application start-up stage.
@fyrchik commented on GitHub (Mar 23, 2022):
Initalready opens the connection, is this task just about changing the name and signature?@carpawell commented on GitHub (Jul 6, 2022):
In the current implementation
Initrequires specifying a service name and an RPC name to open a stream, so it could not be used as "general initialization". I think that issue requires more deep refactoring.BTW, I think that issue is quite actual. Currently, SDK client does a really strange thing to open the connection:
@roman-khimov commented on GitHub (Jun 21, 2023):
It's basically about making
createGRPCClient()aDial(). Which would be a nice enhancement. Luckily current SDK code hides this, so it's not a priority.