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 (t ChecksumType) String() string {
|
|||
//
|
||||
// Returns true if s was parsed successfully.
|
||||
func (t *ChecksumType) FromString(s string) bool {
|
||||
var g refs.ChecksumType
|
||||
|
||||
ok := g.FromString(s)
|
||||
g, ok := refs.ChecksumType_value[s]
|
||||
|
||||
if ok {
|
||||
*t = ChecksumTypeFromGRPC(g)
|
||||
*t = ChecksumTypeFromGRPC(refs.ChecksumType(g))
|
||||
}
|
||||
|
||||
return ok
|
||||
|
@ -35,12 +33,10 @@ func (t SignatureScheme) String() string {
|
|||
//
|
||||
// Returns true if s was parsed successfully.
|
||||
func (t *SignatureScheme) FromString(s string) bool {
|
||||
var g refs.SignatureScheme
|
||||
|
||||
ok := g.FromString(s)
|
||||
g, ok := refs.SignatureScheme_value[s]
|
||||
|
||||
if ok {
|
||||
*t = SignatureScheme(g)
|
||||
*t = SignatureScheme(refs.SignatureScheme(g))
|
||||
}
|
||||
|
||||
return ok
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue