Skip to content

Commit 8a3ded6

Browse files
committed
tapfreighter: rename method assetsPorter to mainEventLoop for clarity
1 parent 03e126d commit 8a3ded6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tapfreighter/chain_porter.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ func (p *ChainPorter) Start() error {
148148

149149
// Start the main chain porter goroutine.
150150
p.Wg.Add(1)
151-
go p.assetsPorter()
151+
go p.mainEventLoop()
152152

153153
// Identify any pending parcels that need to be resumed and add
154154
// them to the exportReqs channel so they can be processed by
@@ -239,10 +239,10 @@ func (p *ChainPorter) QueryParcels(ctx context.Context,
239239
)
240240
}
241241

242-
// assetsPorter is the main goroutine of the ChainPorter. This takes in incoming
242+
// mainEventLoop is the main goroutine of the ChainPorter. This takes a parcel
243243
// requests, and attempt to complete a transfer. A response is sent back to the
244244
// caller if a transfer can be completed. Otherwise, an error is returned.
245-
func (p *ChainPorter) assetsPorter() {
245+
func (p *ChainPorter) mainEventLoop() {
246246
defer p.Wg.Done()
247247

248248
for {

0 commit comments

Comments
 (0)