Commit 36d2c08e authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent e627c220
...@@ -33,7 +33,6 @@ const ( ...@@ -33,7 +33,6 @@ const (
RESPONSE_MASK = 0x8000 RESPONSE_MASK = 0x8000
) )
//type ErrorCode int
type ErrorCode uint32 type ErrorCode uint32
const ( const (
ACK ErrorCode = iota ACK ErrorCode = iota
...@@ -210,7 +209,7 @@ func bool2byte(b bool) byte { ...@@ -210,7 +209,7 @@ func bool2byte(b bool) byte {
} }
// NOTE py.None encodes as '\xff' * 8 (-> we use NaN for None) // NOTE py.None encodes as '\xff' * 8 (-> we use NaN for None)
// NOTE '\xff' * 8 represents FP NaN but many other NaN bits representation exist // NOTE '\xff' * 8 represents FP NaN but many other NaN bits representations exist
func float64_NEOEncode(b []byte, f float64) { func float64_NEOEncode(b []byte, f float64) {
var fu uint64 var fu uint64
if !math.IsNaN(f) { if !math.IsNaN(f) {
...@@ -256,7 +255,6 @@ type RowInfo struct { ...@@ -256,7 +255,6 @@ type RowInfo struct {
// any other message, even if such a message does not expect a reply // any other message, even if such a message does not expect a reply
// usually. Any -> Any. // usually. Any -> Any.
type Error struct { type Error struct {
//Code uint32 // PNumber
Code ErrorCode // PNumber Code ErrorCode // PNumber
Message string Message string
} }
...@@ -276,7 +274,7 @@ type RequestIdentification struct { ...@@ -276,7 +274,7 @@ type RequestIdentification struct {
NodeType NodeType // XXX name NodeType NodeType // XXX name
NodeID NodeID NodeID NodeID
Address Address // where requesting node is also accepting connections Address Address // where requesting node is also accepting connections
Name string Name string // XXX -> ClusterName
IdTimestamp float64 IdTimestamp float64
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment