Skip to content

Commit

Permalink
Update CHANGELOG and remove unused metric (#6423)
Browse files Browse the repository at this point in the history
## Motivation

Follow up to #6422: Update changlog and remove unused metric.
  • Loading branch information
fasmat committed Oct 30, 2024
1 parent cb85d2c commit 96261c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ See [RELEASE](./RELEASE.md) for workflow instructions.
* [#6417](https://github.com/spacemeshos/go-spacemesh/pull/6417) Fix initial post being deleted when the node is
restarted or times out before the first ATX is published.

* [#6422](https://github.com/spacemeshos/go-spacemesh/pull/6422) Further improved performance of the proposal building
process to avoid late proposals.

## v1.7.6

### Upgrade information
Expand Down
3 changes: 2 additions & 1 deletion blocks/generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ func createTestGenerator(tb testing.TB) *testGenerator {
tg.mockPatrol,
WithGeneratorLogger(lg),
WithHareOutputChan(ch),
WithConfig(testConfig()))
WithConfig(testConfig()),
)
return tg
}

Expand Down
12 changes: 5 additions & 7 deletions miner/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,11 @@ type latencyTracker struct {
start time.Time
end time.Time

data time.Duration
tortoise time.Duration
hash time.Duration
activeSet time.Duration
txs time.Duration
publish time.Duration
data time.Duration
tortoise time.Duration
hash time.Duration
txs time.Duration
publish time.Duration
}

func (lt *latencyTracker) total() time.Duration {
Expand All @@ -35,7 +34,6 @@ func (lt *latencyTracker) total() time.Duration {

func (lt *latencyTracker) MarshalLogObject(encoder zapcore.ObjectEncoder) error {
encoder.AddDuration("data", lt.data)
encoder.AddDuration("active set", lt.activeSet)
encoder.AddDuration("tortoise", lt.tortoise)
encoder.AddDuration("hash", lt.hash)
encoder.AddDuration("txs", lt.txs)
Expand Down

0 comments on commit 96261c5

Please sign in to comment.