Skip to content

Commit

Permalink
fix(logs): fixed print issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlangzi committed Mar 28, 2024
1 parent b72f060 commit 65c9226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node_rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (n *Node) NewLock(req LockRequest, t *Lease) error {
*t = lease
}

log.Printf("new: topic=%s key=%s lessee=%s ttl=%s\n", lease.Topic, lease.Key, lease.Lessee, lease.TTL)
log.Printf("new: topic=%s key=%s lessee=%s ttl=%s\n", lease.Topic, lease.Key, lease.Lessee, lease.TTL.Duration())

return nil
}
Expand Down Expand Up @@ -118,7 +118,7 @@ func (n *Node) ReleaseLock(req LockRequest, ok *bool) error {

*ok = true

log.Printf("release: topic=%s key=%s lessee=%s ttl=%s\n", lease.Topic, lease.Key, lease.Lessee, lease.TTL)
log.Printf("release: topic=%s key=%s lessee=%s ttl=%s\n", lease.Topic, lease.Key, lease.Lessee, lease.TTL.Duration())

return nil
}
Expand Down

0 comments on commit 65c9226

Please sign in to comment.