Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions provider/loop_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,23 +119,6 @@ func (l *LoopProvider) acquireReverseSwapLock(channelId uint64) error {
return nil
}

// releaseReverseSwapLock releases the reverse swap lock for a specific channel
func (l *LoopProvider) releaseReverseSwapLock(channelId uint64) {
l.stateMutex.Lock()
defer l.stateMutex.Unlock()

// Initialize the maps if they don't exist
if l.reverseSwapLocks == nil {
l.reverseSwapLocks = make(map[uint64]*time.Time)
return
}

if lockTime, exists := l.reverseSwapLocks[channelId]; exists && lockTime != nil {
log.Infof("Released reverse swap lock for channel %d that was acquired at %s", channelId, lockTime.Format(time.RFC3339))
delete(l.reverseSwapLocks, channelId)
}
}

// Submarine Swap L1->L2 based on loop (Loop In)
func (l *LoopProvider) RequestSubmarineSwap(ctx context.Context, request SubmarineSwapRequest, client looprpc.SwapClientClient) (SubmarineSwapResponse, error) {

Expand Down