This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
p2p/trust: lock on Copy()
pull/917/head
Ethan Buchman
7 years ago
parent
814541f6d9
commit
cb9a1dbb4f
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
p2p/trust/metric.go
+ 2
- 0
p2p/trust/metric.go
View File
@ -234,6 +234,8 @@ func (tm *TrustMetric) NextTimeInterval() {
// Copy returns a new trust metric with members containing the same values
func
(
tm
*
TrustMetric
)
Copy
(
)
*
TrustMetric
{
tm
.
mtx
.
Lock
(
)
defer
tm
.
mtx
.
Unlock
(
)
if
tm
==
nil
{
return
nil
}
Write
Preview
Loading…
Cancel
Save