consensus: change err offset

This commit is contained in:
Sergey Cherepanov 2023-06-29 14:52:47 +02:00
parent 50f94e7518
commit 59cf8b46fd
No known key found for this signature in database
GPG Key ID: 87F8EDE8FBDF637C
2 changed files with 34 additions and 34 deletions

View File

@ -29,7 +29,7 @@ const (
ErrCodes_LogExists ErrCodes = 1 ErrCodes_LogExists ErrCodes = 1
ErrCodes_LogNotFound ErrCodes = 2 ErrCodes_LogNotFound ErrCodes = 2
ErrCodes_RecordConflict ErrCodes = 3 ErrCodes_RecordConflict ErrCodes = 3
ErrCodes_ErrorOffset ErrCodes = 400 ErrCodes_ErrorOffset ErrCodes = 500
) )
var ErrCodes_name = map[int32]string{ var ErrCodes_name = map[int32]string{
@ -37,7 +37,7 @@ var ErrCodes_name = map[int32]string{
1: "LogExists", 1: "LogExists",
2: "LogNotFound", 2: "LogNotFound",
3: "RecordConflict", 3: "RecordConflict",
400: "ErrorOffset", 500: "ErrorOffset",
} }
var ErrCodes_value = map[string]int32{ var ErrCodes_value = map[string]int32{
@ -45,7 +45,7 @@ var ErrCodes_value = map[string]int32{
"LogExists": 1, "LogExists": 1,
"LogNotFound": 2, "LogNotFound": 2,
"RecordConflict": 3, "RecordConflict": 3,
"ErrorOffset": 400, "ErrorOffset": 500,
} }
func (x ErrCodes) String() string { func (x ErrCodes) String() string {
@ -481,39 +481,39 @@ func init() {
} }
var fileDescriptor_b8d7f1c16b400059 = []byte{ var fileDescriptor_b8d7f1c16b400059 = []byte{
// 510 bytes of a gzipped FileDescriptorProto // 511 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xc1, 0x6e, 0xd3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xc1, 0x6e, 0xd3, 0x40,
0x10, 0xcd, 0xda, 0x6d, 0x9a, 0x4c, 0xda, 0xd4, 0x1a, 0x50,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x56, 0xe3, 0xc7, 0xca, 0x6a, 0xbc, 0x37, 0xb7, 0xfd, 0xf4, 0x1f, 0x9b, 0xea, 0xf5, 0xe4, 0x1a, 0xd7, 0x2b, 0xab, 0xf1, 0x7d, 0x65, 0x35, 0xde, 0x9a, 0xdb, 0x7e, 0xfa, 0xf7, 0x4d, 0xf5,
0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0xfc, 0xa9, 0xeb, 0x7b, 0x17, 0x04, 0x00, 0x00, 0x7a, 0xf4, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xc1, 0x7f, 0xa3, 0x95, 0x17, 0x04, 0x00, 0x00,
} }
func (m *Log) Marshal() (dAtA []byte, err error) { func (m *Log) Marshal() (dAtA []byte, err error) {

View File

@ -8,7 +8,7 @@ enum ErrCodes {
LogExists = 1; LogExists = 1;
LogNotFound = 2; LogNotFound = 2;
RecordConflict = 3; RecordConflict = 3;
ErrorOffset = 400; ErrorOffset = 500;
} }