contractcourt: fix concurrent access to launched
This commit is contained in:
8 files changed
+27
-14
No files matched your search
@@ -178,13 +178,13 @@ var _ ContractResolver = (*anchorResolver)(nil)
|
||||
|
||||
// Launch offers the anchor output to the sweeper.
|
||||
func (c *anchorResolver) Launch() error {
|
||||
if c.launched {
|
||||
if c.isLaunched() {
|
||||
c.log.Tracef("already launched")
|
||||
return nil
|
||||
}
|
||||
|
||||
c.log.Debugf("launching resolver...")
|
||||
c.launched = true
|
||||
c.markLaunched()
|
||||
|
||||
// If we're already resolved, then we can exit early.
|
||||
if c.IsResolved() {
|
||||
|
||||
Reference in new issue
Block a user