mirror of
https://github.com/luxfi/consensus.git
synced 2026-10-30 14:45:53 +00:00
19 lines
437 B
Go
19 lines
437 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package uptime
|
|
|
|
// LockedCalculator is a wrapper for a Calculator that ensures thread-safety
|
|
type LockedCalculator interface {
|
|
Calculator
|
|
}
|
|
|
|
// NewLockedCalculator returns a new LockedCalculator
|
|
func NewLockedCalculator() LockedCalculator {
|
|
return &lockedCalculator{}
|
|
}
|
|
|
|
type lockedCalculator struct {
|
|
NoOpCalculator
|
|
}
|