contractcourt: fix concurrent access to launched

This commit is contained in:
yyforyongyu committed 2024-12-20 17:54:06 +08:00
1 parent 4f5ccb8650
commit d2e81a19fd
8 files changed
+27 -14

No files matched your search

+2 -2
View File
@@ -130,13 +130,13 @@ var _ ContractResolver = (*breachResolver)(nil)
//
// TODO(yy): implement it once the outputs are offered to the sweeper.
func (b *breachResolver) Launch() error {
if b.launched {
if b.isLaunched() {
b.log.Tracef("already launched")
return nil
}
b.log.Debugf("launching resolver...")
b.launched = true
b.markLaunched()
return nil
}