Skip to content

Commit

Permalink
refactor: simplify make and insert deal handler (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmc authored May 17, 2022
1 parent 9961d4f commit 12f3c84
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions storagemarket/deal_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ import (
func (p *Provider) mkAndInsertDealHandler(dealUuid uuid.UUID) (*dealHandler, error) {
p.dhsMu.Lock()
defer p.dhsMu.Unlock()
return p.unlkMkAndInsertDealHandler(dealUuid)
}

func (p *Provider) unlkMkAndInsertDealHandler(dealUuid uuid.UUID) (*dealHandler, error) {
dh, ok := p.dhs[dealUuid]
if ok {
return dh, nil
Expand Down

0 comments on commit 12f3c84

Please sign in to comment.