Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Mar 4, 2024
1 parent 2c8b814 commit 8c74070
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion examples/console/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (s *stats) AgreementsPerSecond() float64 {
if timeFinish.IsZero() {
timeFinish = time.Now()
}
duration := s.timeFinish.Sub(s.timeStart)
duration := timeFinish.Sub(s.timeStart)
rate := float64(s.agreementsSent+s.agreementsReceived) / duration.Seconds()
if math.IsNaN(rate) || math.IsInf(rate, 0) {
rate = 0
Expand Down
20 changes: 10 additions & 10 deletions sdk/state/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ The Open, Payment, and Close operations are broken up into three steps:
- Finalize*: Called by the payer to finalize the agreement with the payees
signatures.
+-----------+ +-----------+
| Payer | | Payee |
+-----+-----+ +-----+-----+
| |
Propose |
+----------------->+
| Confirm
+<-----------------+
Finalize* |
| |
+-----------+ +-----------+
| Payer | | Payee |
+-----+-----+ +-----+-----+
| |
Propose |
+----------------->+
| Confirm
+<-----------------+
Finalize* |
| |
* Note that the Open and Close processes do not have a Finalize operation, and the
Confirm is used in its place at this time. A Finalize operation is likely to be
Expand Down

0 comments on commit 8c74070

Please sign in to comment.