• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 15561477203

10 Jun 2025 01:54PM UTC coverage: 58.351% (-10.1%) from 68.487%
15561477203

Pull #9356

github

web-flow
Merge 6440b25db into c6d6d4c0b
Pull Request #9356: lnrpc: add incoming/outgoing channel ids filter to forwarding history request

33 of 36 new or added lines in 2 files covered. (91.67%)

28366 existing lines in 455 files now uncovered.

97715 of 167461 relevant lines covered (58.35%)

1.81 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

72.01
/accessman.go
1
package lnd
2

3
import (
4
        "context"
5
        "fmt"
6
        "maps"
7
        "sync"
8

9
        "github.com/btcsuite/btcd/btcec/v2"
10
        "github.com/btcsuite/btclog/v2"
11
        "github.com/lightningnetwork/lnd/channeldb"
12
        "github.com/lightningnetwork/lnd/lnutils"
13
)
14

15
// accessMan is responsible for managing the server's access permissions.
16
type accessMan struct {
17
        cfg *accessManConfig
18

19
        // banScoreMtx is used for the server's ban tracking. If the server
20
        // mutex is also going to be locked, ensure that this is locked after
21
        // the server mutex.
22
        banScoreMtx sync.RWMutex
23

24
        // peerCounts is a mapping from remote public key to {bool, uint64}
25
        // where the bool indicates that we have an open/closed channel with
26
        // the peer and where the uint64 indicates the number of pending-open
27
        // channels we currently have with them. This mapping will be used to
28
        // determine access permissions for the peer. The map key is the
29
        // string-version of the serialized public key.
30
        //
31
        // NOTE: This MUST be accessed with the banScoreMtx held.
32
        peerCounts map[string]channeldb.ChanCount
33

34
        // peerScores stores each connected peer's access status. The map key
35
        // is the string-version of the serialized public key.
36
        //
37
        // NOTE: This MUST be accessed with the banScoreMtx held.
38
        peerScores map[string]peerSlotStatus
39

40
        // numRestricted tracks the number of peers with restricted access in
41
        // peerScores. This MUST be accessed with the banScoreMtx held.
42
        numRestricted int64
43
}
44

45
type accessManConfig struct {
46
        // initAccessPerms checks the channeldb for initial access permissions
47
        // and then populates the peerCounts and peerScores maps.
48
        initAccessPerms func() (map[string]channeldb.ChanCount, error)
49

50
        // shouldDisconnect determines whether we should disconnect a peer or
51
        // not.
52
        shouldDisconnect func(*btcec.PublicKey) (bool, error)
53

54
        // maxRestrictedSlots is the number of restricted slots we'll allocate.
55
        maxRestrictedSlots int64
56
}
57

58
func newAccessMan(cfg *accessManConfig) (*accessMan, error) {
3✔
59
        a := &accessMan{
3✔
60
                cfg:        cfg,
3✔
61
                peerCounts: make(map[string]channeldb.ChanCount),
3✔
62
                peerScores: make(map[string]peerSlotStatus),
3✔
63
        }
3✔
64

3✔
65
        counts, err := a.cfg.initAccessPerms()
3✔
66
        if err != nil {
3✔
67
                return nil, err
×
68
        }
×
69

70
        // We'll populate the server's peerCounts map with the counts fetched
71
        // via initAccessPerms. Also note that we haven't yet connected to the
72
        // peers.
73
        maps.Copy(a.peerCounts, counts)
3✔
74

3✔
75
        acsmLog.Info("Access Manager initialized")
3✔
76

3✔
77
        return a, nil
3✔
78
}
79

80
// assignPeerPerms assigns a new peer its permissions. This does not track the
81
// access in the maps. This is intentional.
82
func (a *accessMan) assignPeerPerms(remotePub *btcec.PublicKey) (
83
        peerAccessStatus, error) {
3✔
84

3✔
85
        ctx := btclog.WithCtx(
3✔
86
                context.TODO(), lnutils.LogPubKey("peer", remotePub),
3✔
87
        )
3✔
88

3✔
89
        peerMapKey := string(remotePub.SerializeCompressed())
3✔
90

3✔
91
        acsmLog.DebugS(ctx, "Assigning permissions")
3✔
92

3✔
93
        // Default is restricted unless the below filters say otherwise.
3✔
94
        access := peerStatusRestricted
3✔
95

3✔
96
        // Lock banScoreMtx for reading so that we can update the banning maps
3✔
97
        // below.
3✔
98
        a.banScoreMtx.RLock()
3✔
99
        if count, found := a.peerCounts[peerMapKey]; found {
6✔
100
                if count.HasOpenOrClosedChan {
6✔
101
                        acsmLog.DebugS(ctx, "Peer has open/closed channel, "+
3✔
102
                                "assigning protected access")
3✔
103

3✔
104
                        access = peerStatusProtected
3✔
105
                } else if count.PendingOpenCount != 0 {
9✔
106
                        acsmLog.DebugS(ctx, "Peer has pending channel(s), "+
3✔
107
                                "assigning temporary access")
3✔
108

3✔
109
                        access = peerStatusTemporary
3✔
110
                }
3✔
111
        }
112
        a.banScoreMtx.RUnlock()
3✔
113

3✔
114
        // Exit early if the peer status is no longer restricted.
3✔
115
        if access != peerStatusRestricted {
6✔
116
                return access, nil
3✔
117
        }
3✔
118

119
        // Check whether this peer is banned.
120
        shouldDisconnect, err := a.cfg.shouldDisconnect(remotePub)
3✔
121
        if err != nil {
3✔
122
                acsmLog.ErrorS(ctx, "Error checking disconnect status", err)
×
123

×
124
                // Access is restricted here.
×
125
                return access, err
×
126
        }
×
127

128
        if shouldDisconnect {
3✔
UNCOV
129
                acsmLog.WarnS(ctx, "Peer is banned, assigning restricted access",
×
UNCOV
130
                        ErrGossiperBan)
×
UNCOV
131

×
UNCOV
132
                // Access is restricted here.
×
UNCOV
133
                return access, ErrGossiperBan
×
UNCOV
134
        }
×
135

136
        // If we've reached this point and access hasn't changed from
137
        // restricted, then we need to check if we even have a slot for this
138
        // peer.
139
        acsmLog.DebugS(ctx, "Peer has no channels, assigning restricted access")
3✔
140

3✔
141
        a.banScoreMtx.RLock()
3✔
142
        defer a.banScoreMtx.RUnlock()
3✔
143

3✔
144
        if a.numRestricted >= a.cfg.maxRestrictedSlots {
3✔
UNCOV
145
                acsmLog.WarnS(ctx, "No more restricted slots available, "+
×
UNCOV
146
                        "denying peer", ErrNoMoreRestrictedAccessSlots,
×
UNCOV
147
                        "num_restricted", a.numRestricted, "max_restricted",
×
UNCOV
148
                        a.cfg.maxRestrictedSlots)
×
UNCOV
149

×
UNCOV
150
                return access, ErrNoMoreRestrictedAccessSlots
×
UNCOV
151
        }
×
152

153
        return access, nil
3✔
154
}
155

156
// newPendingOpenChan is called after the pending-open channel has been
157
// committed to the database. This may transition a restricted-access peer to a
158
// temporary-access peer.
159
func (a *accessMan) newPendingOpenChan(remotePub *btcec.PublicKey) error {
3✔
160
        a.banScoreMtx.Lock()
3✔
161
        defer a.banScoreMtx.Unlock()
3✔
162

3✔
163
        ctx := btclog.WithCtx(
3✔
164
                context.TODO(), lnutils.LogPubKey("peer", remotePub),
3✔
165
        )
3✔
166

3✔
167
        acsmLog.DebugS(ctx, "Processing new pending open channel")
3✔
168

3✔
169
        peerMapKey := string(remotePub.SerializeCompressed())
3✔
170

3✔
171
        // Fetch the peer's access status from peerScores.
3✔
172
        status, found := a.peerScores[peerMapKey]
3✔
173
        if !found {
3✔
174
                acsmLog.ErrorS(ctx, "Peer score not found", ErrNoPeerScore)
×
175

×
176
                // If we didn't find the peer, we'll return an error.
×
177
                return ErrNoPeerScore
×
178
        }
×
179

180
        switch status.state {
3✔
181
        case peerStatusProtected:
3✔
182
                acsmLog.DebugS(ctx, "Peer already protected, no change")
3✔
183

3✔
184
                // If this peer's access status is protected, we don't need to
3✔
185
                // do anything.
3✔
186
                return nil
3✔
187

188
        case peerStatusTemporary:
3✔
189
                // If this peer's access status is temporary, we'll need to
3✔
190
                // update the peerCounts map. The peer's access status will stay
3✔
191
                // temporary.
3✔
192
                peerCount, found := a.peerCounts[peerMapKey]
3✔
193
                if !found {
3✔
194
                        // Error if we did not find any info in peerCounts.
×
195
                        acsmLog.ErrorS(ctx, "Pending peer info not found",
×
196
                                ErrNoPendingPeerInfo)
×
197

×
198
                        return ErrNoPendingPeerInfo
×
199
                }
×
200

201
                // Increment the pending channel amount.
202
                peerCount.PendingOpenCount += 1
3✔
203
                a.peerCounts[peerMapKey] = peerCount
3✔
204

3✔
205
                acsmLog.DebugS(ctx, "Peer is temporary, incremented "+
3✔
206
                        "pending count",
3✔
207
                        "pending_count", peerCount.PendingOpenCount)
3✔
208

209
        case peerStatusRestricted:
3✔
210
                // If the peer's access status is restricted, then we can
3✔
211
                // transition it to a temporary-access peer. We'll need to
3✔
212
                // update numRestricted and also peerScores. We'll also need to
3✔
213
                // update peerCounts.
3✔
214
                peerCount := channeldb.ChanCount{
3✔
215
                        HasOpenOrClosedChan: false,
3✔
216
                        PendingOpenCount:    1,
3✔
217
                }
3✔
218

3✔
219
                a.peerCounts[peerMapKey] = peerCount
3✔
220

3✔
221
                // A restricted-access slot has opened up.
3✔
222
                oldRestricted := a.numRestricted
3✔
223
                a.numRestricted -= 1
3✔
224

3✔
225
                a.peerScores[peerMapKey] = peerSlotStatus{
3✔
226
                        state: peerStatusTemporary,
3✔
227
                }
3✔
228

3✔
229
                acsmLog.InfoS(ctx, "Peer transitioned restricted -> "+
3✔
230
                        "temporary (pending open)",
3✔
231
                        "old_restricted", oldRestricted,
3✔
232
                        "new_restricted", a.numRestricted)
3✔
233

234
        default:
×
235
                // This should not be possible.
×
236
                err := fmt.Errorf("invalid peer access status %v for %x",
×
237
                        status.state, peerMapKey)
×
238
                acsmLog.ErrorS(ctx, "Invalid peer access status", err)
×
239

×
240
                return err
×
241
        }
242

243
        return nil
3✔
244
}
245

246
// newPendingCloseChan is called when a pending-open channel prematurely closes
247
// before the funding transaction has confirmed. This potentially demotes a
248
// temporary-access peer to a restricted-access peer. If no restricted-access
249
// slots are available, the peer will be disconnected.
250
func (a *accessMan) newPendingCloseChan(remotePub *btcec.PublicKey) error {
3✔
251
        a.banScoreMtx.Lock()
3✔
252
        defer a.banScoreMtx.Unlock()
3✔
253

3✔
254
        ctx := btclog.WithCtx(
3✔
255
                context.TODO(), lnutils.LogPubKey("peer", remotePub),
3✔
256
        )
3✔
257

3✔
258
        acsmLog.DebugS(ctx, "Processing pending channel close")
3✔
259

3✔
260
        peerMapKey := string(remotePub.SerializeCompressed())
3✔
261

3✔
262
        // Fetch the peer's access status from peerScores.
3✔
263
        status, found := a.peerScores[peerMapKey]
3✔
264
        if !found {
3✔
265
                acsmLog.ErrorS(ctx, "Peer score not found", ErrNoPeerScore)
×
266

×
267
                return ErrNoPeerScore
×
268
        }
×
269

270
        switch status.state {
3✔
271
        case peerStatusProtected:
×
272
                // If this peer is protected, we don't do anything.
×
273
                acsmLog.DebugS(ctx, "Peer is protected, no change")
×
274

×
275
                return nil
×
276

277
        case peerStatusTemporary:
3✔
278
                // If this peer is temporary, we need to check if it will
3✔
279
                // revert to a restricted-access peer.
3✔
280
                peerCount, found := a.peerCounts[peerMapKey]
3✔
281
                if !found {
3✔
282
                        acsmLog.ErrorS(ctx, "Pending peer info not found",
×
283
                                ErrNoPendingPeerInfo)
×
284

×
285
                        // Error if we did not find any info in peerCounts.
×
286
                        return ErrNoPendingPeerInfo
×
287
                }
×
288

289
                currentNumPending := peerCount.PendingOpenCount - 1
3✔
290

3✔
291
                acsmLog.DebugS(ctx, "Peer is temporary, decrementing "+
3✔
292
                        "pending count",
3✔
293
                        "pending_count", currentNumPending)
3✔
294

3✔
295
                if currentNumPending == 0 {
6✔
296
                        // Remove the entry from peerCounts.
3✔
297
                        delete(a.peerCounts, peerMapKey)
3✔
298

3✔
299
                        // If this is the only pending-open channel for this
3✔
300
                        // peer and it's getting removed, attempt to demote
3✔
301
                        // this peer to a restricted peer.
3✔
302
                        if a.numRestricted == a.cfg.maxRestrictedSlots {
3✔
UNCOV
303
                                // There are no available restricted slots, so
×
UNCOV
304
                                // we need to disconnect this peer. We leave
×
UNCOV
305
                                // this up to the caller.
×
UNCOV
306
                                acsmLog.WarnS(ctx, "Peer last pending "+
×
UNCOV
307
                                        "channel closed: ",
×
UNCOV
308
                                        ErrNoMoreRestrictedAccessSlots,
×
UNCOV
309
                                        "num_restricted", a.numRestricted,
×
UNCOV
310
                                        "max_restricted", a.cfg.maxRestrictedSlots)
×
UNCOV
311

×
UNCOV
312
                                return ErrNoMoreRestrictedAccessSlots
×
UNCOV
313
                        }
×
314

315
                        // Otherwise, there is an available restricted-access
316
                        // slot, so we can demote this peer.
317
                        a.peerScores[peerMapKey] = peerSlotStatus{
3✔
318
                                state: peerStatusRestricted,
3✔
319
                        }
3✔
320

3✔
321
                        // Update numRestricted.
3✔
322
                        oldRestricted := a.numRestricted
3✔
323
                        a.numRestricted++
3✔
324

3✔
325
                        acsmLog.InfoS(ctx, "Peer transitioned "+
3✔
326
                                "temporary -> restricted "+
3✔
327
                                "(last pending closed)",
3✔
328
                                "old_restricted", oldRestricted,
3✔
329
                                "new_restricted", a.numRestricted)
3✔
330

3✔
331
                        return nil
3✔
332
                }
333

334
                // Else, we don't need to demote this peer since it has other
335
                // pending-open channels with us.
336
                peerCount.PendingOpenCount = currentNumPending
×
337
                a.peerCounts[peerMapKey] = peerCount
×
338

×
339
                acsmLog.DebugS(ctx, "Peer still has other pending channels",
×
340
                        "pending_count", currentNumPending)
×
341

×
342
                return nil
×
343

344
        case peerStatusRestricted:
×
345
                // This should not be possible. This indicates an error.
×
346
                err := fmt.Errorf("invalid peer access state transition: "+
×
347
                        "pending close for restricted peer %x", peerMapKey)
×
348
                acsmLog.ErrorS(ctx, "Invalid peer access state transition", err)
×
349

×
350
                return err
×
351

352
        default:
×
353
                // This should not be possible.
×
354
                err := fmt.Errorf("invalid peer access status %v for %x",
×
355
                        status.state, peerMapKey)
×
356
                acsmLog.ErrorS(ctx, "Invalid peer access status", err)
×
357

×
358
                return err
×
359
        }
360
}
361

362
// newOpenChan is called when a pending-open channel becomes an open channel
363
// (i.e. the funding transaction has confirmed). If the remote peer is a
364
// temporary-access peer, it will be promoted to a protected-access peer.
365
func (a *accessMan) newOpenChan(remotePub *btcec.PublicKey) error {
3✔
366
        a.banScoreMtx.Lock()
3✔
367
        defer a.banScoreMtx.Unlock()
3✔
368

3✔
369
        ctx := btclog.WithCtx(
3✔
370
                context.TODO(), lnutils.LogPubKey("peer", remotePub),
3✔
371
        )
3✔
372

3✔
373
        acsmLog.DebugS(ctx, "Processing new open channel")
3✔
374

3✔
375
        peerMapKey := string(remotePub.SerializeCompressed())
3✔
376

3✔
377
        // Fetch the peer's access status from peerScores.
3✔
378
        status, found := a.peerScores[peerMapKey]
3✔
379
        if !found {
6✔
380
                // If we didn't find the peer, we'll return an error.
3✔
381
                acsmLog.ErrorS(ctx, "Peer score not found", ErrNoPeerScore)
3✔
382

3✔
383
                return ErrNoPeerScore
3✔
384
        }
3✔
385

386
        switch status.state {
3✔
387
        case peerStatusProtected:
3✔
388
                acsmLog.DebugS(ctx, "Peer already protected, no change")
3✔
389

3✔
390
                // If the peer's state is already protected, we don't need to do
3✔
391
                // anything more.
3✔
392
                return nil
3✔
393

394
        case peerStatusTemporary:
3✔
395
                // If the peer's state is temporary, we'll upgrade the peer to
3✔
396
                // a protected peer.
3✔
397
                peerCount, found := a.peerCounts[peerMapKey]
3✔
398
                if !found {
3✔
399
                        // Error if we did not find any info in peerCounts.
×
400
                        acsmLog.ErrorS(ctx, "Pending peer info not found",
×
401
                                ErrNoPendingPeerInfo)
×
402

×
403
                        return ErrNoPendingPeerInfo
×
404
                }
×
405

406
                peerCount.HasOpenOrClosedChan = true
3✔
407
                a.peerCounts[peerMapKey] = peerCount
3✔
408

3✔
409
                newStatus := peerSlotStatus{
3✔
410
                        state: peerStatusProtected,
3✔
411
                }
3✔
412
                a.peerScores[peerMapKey] = newStatus
3✔
413

3✔
414
                acsmLog.InfoS(ctx, "Peer transitioned temporary -> "+
3✔
415
                        "protected (channel opened)")
3✔
416

3✔
417
                return nil
3✔
418

419
        case peerStatusRestricted:
×
420
                // This should not be possible. For the server to receive a
×
421
                // state-transition event via NewOpenChan, the server must have
×
422
                // previously granted this peer "temporary" access. This
×
423
                // temporary access would not have been revoked or downgraded
×
424
                // without `CloseChannel` being called with the pending
×
425
                // argument set to true. This means that an open-channel state
×
426
                // transition would be impossible. Therefore, we can return an
×
427
                // error.
×
428
                err := fmt.Errorf("invalid peer access status: new open "+
×
429
                        "channel for restricted peer %x", peerMapKey)
×
430

×
431
                acsmLog.ErrorS(ctx, "Invalid peer access status", err)
×
432

×
433
                return err
×
434

435
        default:
×
436
                // This should not be possible.
×
437
                err := fmt.Errorf("invalid peer access status %v for %x",
×
438
                        status.state, peerMapKey)
×
439

×
440
                acsmLog.ErrorS(ctx, "Invalid peer access status", err)
×
441

×
442
                return err
×
443
        }
444
}
445

446
// checkIncomingConnBanScore checks whether, given the remote's public hex-
447
// encoded key, we should not accept this incoming connection or immediately
448
// disconnect. This does not assign to the server's peerScores maps. This is
449
// just an inbound filter that the brontide listeners use.
450
func (a *accessMan) checkIncomingConnBanScore(remotePub *btcec.PublicKey) (
451
        bool, error) {
3✔
452

3✔
453
        ctx := btclog.WithCtx(
3✔
454
                context.TODO(), lnutils.LogPubKey("peer", remotePub),
3✔
455
        )
3✔
456

3✔
457
        peerMapKey := string(remotePub.SerializeCompressed())
3✔
458

3✔
459
        acsmLog.TraceS(ctx, "Checking incoming connection ban score")
3✔
460

3✔
461
        a.banScoreMtx.RLock()
3✔
462
        defer a.banScoreMtx.RUnlock()
3✔
463

3✔
464
        if _, found := a.peerCounts[peerMapKey]; !found {
6✔
465
                acsmLog.DebugS(ctx, "Peer not found in counts, "+
3✔
466
                        "checking restricted slots")
3✔
467

3✔
468
                // Check numRestricted to see if there is an available slot. In
3✔
469
                // the future, it's possible to add better heuristics.
3✔
470
                if a.numRestricted < a.cfg.maxRestrictedSlots {
6✔
471
                        // There is an available slot.
3✔
472
                        acsmLog.DebugS(ctx, "Restricted slot available, "+
3✔
473
                                "accepting",
3✔
474
                                "num_restricted", a.numRestricted,
3✔
475
                                "max_restricted", a.cfg.maxRestrictedSlots)
3✔
476

3✔
477
                        return true, nil
3✔
478
                }
3✔
479

480
                // If there are no slots left, then we reject this connection.
481
                acsmLog.WarnS(ctx, "No restricted slots available, "+
3✔
482
                        "rejecting",
3✔
483
                        ErrNoMoreRestrictedAccessSlots,
3✔
484
                        "num_restricted", a.numRestricted,
3✔
485
                        "max_restricted", a.cfg.maxRestrictedSlots)
3✔
486

3✔
487
                return false, ErrNoMoreRestrictedAccessSlots
3✔
488
        }
489

490
        // Else, the peer is either protected or temporary.
491
        acsmLog.DebugS(ctx, "Peer found (protected/temporary), accepting")
3✔
492

3✔
493
        return true, nil
3✔
494
}
495

496
// addPeerAccess tracks a peer's access in the maps. This should be called when
497
// the peer has fully connected.
498
func (a *accessMan) addPeerAccess(remotePub *btcec.PublicKey,
499
        access peerAccessStatus) {
3✔
500

3✔
501
        ctx := btclog.WithCtx(
3✔
502
                context.TODO(), lnutils.LogPubKey("peer", remotePub),
3✔
503
        )
3✔
504

3✔
505
        acsmLog.DebugS(ctx, "Adding peer access", "access", access)
3✔
506

3✔
507
        // Add the remote public key to peerScores.
3✔
508
        a.banScoreMtx.Lock()
3✔
509
        defer a.banScoreMtx.Unlock()
3✔
510

3✔
511
        peerMapKey := string(remotePub.SerializeCompressed())
3✔
512

3✔
513
        a.peerScores[peerMapKey] = peerSlotStatus{state: access}
3✔
514

3✔
515
        // Increment numRestricted.
3✔
516
        if access == peerStatusRestricted {
6✔
517
                oldRestricted := a.numRestricted
3✔
518
                a.numRestricted++
3✔
519

3✔
520
                acsmLog.DebugS(ctx, "Incremented restricted slots",
3✔
521
                        "old_restricted", oldRestricted,
3✔
522
                        "new_restricted", a.numRestricted)
3✔
523
        }
3✔
524
}
525

526
// removePeerAccess removes the peer's access from the maps. This should be
527
// called when the peer has been disconnected.
528
func (a *accessMan) removePeerAccess(remotePub *btcec.PublicKey) {
3✔
529
        a.banScoreMtx.Lock()
3✔
530
        defer a.banScoreMtx.Unlock()
3✔
531

3✔
532
        ctx := btclog.WithCtx(
3✔
533
                context.TODO(), lnutils.LogPubKey("peer", remotePub),
3✔
534
        )
3✔
535

3✔
536
        acsmLog.DebugS(ctx, "Removing peer access")
3✔
537

3✔
538
        peerMapKey := string(remotePub.SerializeCompressed())
3✔
539

3✔
540
        status, found := a.peerScores[peerMapKey]
3✔
541
        if !found {
3✔
542
                acsmLog.InfoS(ctx, "Peer score not found during removal")
×
543
                return
×
544
        }
×
545

546
        if status.state == peerStatusRestricted {
6✔
547
                // If the status is restricted, then we decrement from
3✔
548
                // numRestrictedSlots.
3✔
549
                oldRestricted := a.numRestricted
3✔
550
                a.numRestricted--
3✔
551

3✔
552
                acsmLog.DebugS(ctx, "Decremented restricted slots",
3✔
553
                        "old_restricted", oldRestricted,
3✔
554
                        "new_restricted", a.numRestricted)
3✔
555
        }
3✔
556

557
        acsmLog.TraceS(ctx, "Deleting peer from peerScores")
3✔
558

3✔
559
        delete(a.peerScores, peerMapKey)
3✔
560
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc