Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1567 from OpenBazaar/deleterecord
Browse files Browse the repository at this point in the history
Best effort delete ipns record if unmarshaling fails
  • Loading branch information
cpacia authored May 1, 2019
2 parents 2980cd4 + be26ba3 commit c57238b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,7 @@ func (x *Start) Execute(args []string) error {
err = proto.Unmarshal(ival, ourIpnsRecord)
if err != nil {
log.Error("unmarshal record value", err)
nd.Repo.Datastore().Delete(ipnskey)
}

// Wallet
Expand Down

0 comments on commit c57238b

Please sign in to comment.