fix: remove self-assignment and add missing time import
- Fix self-assignment of payload.Timestamp - Add time import to session_transfer.go - Fixes golangci-lint error Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
21b8d96a52
commit
050f99ef0c
1 changed files with 2 additions and 1 deletions
|
|
@ -12,6 +12,7 @@ import (
|
|||
"fmt"
|
||||
"net"
|
||||
"sync"
|
||||
"time"
|
||||
)
|
||||
|
||||
// SessionTransfer handles session migration between nodes.
|
||||
|
|
@ -101,7 +102,7 @@ func (st *SessionTransfer) TransferSession(ctx context.Context, targetNode *Node
|
|||
|
||||
payload.SourceNodeID = st.localNode.ID
|
||||
payload.TargetNodeID = targetNode.ID
|
||||
payload.Timestamp = payload.Timestamp
|
||||
payload.Timestamp = time.Now().UnixNano()
|
||||
|
||||
// Create transfer operation
|
||||
op := &TransferOperation{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue