Skip to content

Commit 12f3c84

Browse files
authored
refactor: simplify make and insert deal handler (#528)
1 parent 9961d4f commit 12f3c84

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

storagemarket/deal_handler.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@ import (
1616
func (p *Provider) mkAndInsertDealHandler(dealUuid uuid.UUID) (*dealHandler, error) {
1717
p.dhsMu.Lock()
1818
defer p.dhsMu.Unlock()
19-
return p.unlkMkAndInsertDealHandler(dealUuid)
20-
}
2119

22-
func (p *Provider) unlkMkAndInsertDealHandler(dealUuid uuid.UUID) (*dealHandler, error) {
2320
dh, ok := p.dhs[dealUuid]
2421
if ok {
2522
return dh, nil

0 commit comments

Comments
 (0)