mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
@@ -25,6 +25,8 @@ type BaseConnection struct {
|
|||||||
// last activity for this connection.
|
// last activity for this connection.
|
||||||
// Since this is accessed atomically we put as first element of the struct achieve 64 bit alignment
|
// Since this is accessed atomically we put as first element of the struct achieve 64 bit alignment
|
||||||
lastActivity int64
|
lastActivity int64
|
||||||
|
// transferID is accessed atomically so we put it at the beginning of the struct to achieve 64 bit alignment
|
||||||
|
transferID uint64
|
||||||
// Unique identifier for the connection
|
// Unique identifier for the connection
|
||||||
ID string
|
ID string
|
||||||
// user associated with this connection if any
|
// user associated with this connection if any
|
||||||
@@ -35,7 +37,6 @@ type BaseConnection struct {
|
|||||||
remoteAddr string
|
remoteAddr string
|
||||||
localAddr string
|
localAddr string
|
||||||
sync.RWMutex
|
sync.RWMutex
|
||||||
transferID uint64
|
|
||||||
activeTransfers []ActiveTransfer
|
activeTransfers []ActiveTransfer
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user