fix(connection): Make bytes up and down a signed 64-bit integer
This fixes a theoretical issue with database interaction. Because the fields in the database are signed 64-bit integers, it's theoretically possible to overflow them if we're using unsigned 64-bit integers in the application code.
This commit is contained in:
1 parent
c81398cbf3
commit
d206635d74
17 files changed
+57
-57
No files matched your search
@@ -6,7 +6,7 @@ type Connection struct {
|
||||
ClientTcpPort uint32 `json:"client_tcp_port,omitempty"`
|
||||
EndpointTcpAddress string `json:"endpoint_tcp_address,omitempty"`
|
||||
EndpointTcpPort uint32 `json:"endpoint_tcp_port,omitempty"`
|
||||
BytesUp uint64 `json:"bytes_up,string,omitempty"`
|
||||
BytesDown uint64 `json:"bytes_down,string,omitempty"`
|
||||
BytesUp int64 `json:"bytes_up,string,omitempty"`
|
||||
BytesDown int64 `json:"bytes_down,string,omitempty"`
|
||||
ClosedReason string `json:"closed_reason,omitempty"`
|
||||
}
|
||||
Reference in new issue
Block a user