forked from TrueCloudLab/frostfs-sdk-go
[#317] api: Revert easyproto marshaler usage
It has caused a noticeable degradation in node. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
bab4d5a692
commit
328d214d2d
110 changed files with 47773 additions and 37555 deletions
|
@ -14,12 +14,10 @@ func (x ObjectSessionVerb) String() string {
|
|||
//
|
||||
// Returns true if s was parsed successfully.
|
||||
func (x *ObjectSessionVerb) FromString(s string) bool {
|
||||
var g session.ObjectSessionContext_Verb
|
||||
|
||||
ok := g.FromString(s)
|
||||
g, ok := session.ObjectSessionContext_Verb_value[s]
|
||||
|
||||
if ok {
|
||||
*x = ObjectSessionVerbFromGRPCField(g)
|
||||
*x = ObjectSessionVerbFromGRPCField(session.ObjectSessionContext_Verb(g))
|
||||
}
|
||||
|
||||
return ok
|
||||
|
@ -35,12 +33,10 @@ func (x ContainerSessionVerb) String() string {
|
|||
//
|
||||
// Returns true if s was parsed successfully.
|
||||
func (x *ContainerSessionVerb) FromString(s string) bool {
|
||||
var g session.ContainerSessionContext_Verb
|
||||
|
||||
ok := g.FromString(s)
|
||||
g, ok := session.ContainerSessionContext_Verb_value[s]
|
||||
|
||||
if ok {
|
||||
*x = ContainerSessionVerbFromGRPCField(g)
|
||||
*x = ContainerSessionVerbFromGRPCField(session.ContainerSessionContext_Verb(g))
|
||||
}
|
||||
|
||||
return ok
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue