Skip to content

Commit 3033522

Browse files
committed
Remove double brackets in addrman
1 parent dbfaade commit 3033522

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

src/addrman.h

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -529,23 +529,19 @@ class CAddrMan
529529
//! Mark an entry as accessible.
530530
void Good(const CService &addr, int64_t nTime = GetAdjustedTime())
531531
{
532-
{
533-
LOCK(cs);
534-
Check();
535-
Good_(addr, nTime);
536-
Check();
537-
}
532+
LOCK(cs);
533+
Check();
534+
Good_(addr, nTime);
535+
Check();
538536
}
539537

540538
//! Mark an entry as connection attempted to.
541539
void Attempt(const CService &addr, bool fCountFailure, int64_t nTime = GetAdjustedTime())
542540
{
543-
{
544-
LOCK(cs);
545-
Check();
546-
Attempt_(addr, fCountFailure, nTime);
547-
Check();
548-
}
541+
LOCK(cs);
542+
Check();
543+
Attempt_(addr, fCountFailure, nTime);
544+
Check();
549545
}
550546

551547
/**
@@ -579,12 +575,10 @@ class CAddrMan
579575
//! Mark an entry as currently-connected-to.
580576
void Connected(const CService &addr, int64_t nTime = GetAdjustedTime())
581577
{
582-
{
583-
LOCK(cs);
584-
Check();
585-
Connected_(addr, nTime);
586-
Check();
587-
}
578+
LOCK(cs);
579+
Check();
580+
Connected_(addr, nTime);
581+
Check();
588582
}
589583

590584
void SetServices(const CService &addr, ServiceFlags nServices)

0 commit comments

Comments
 (0)