Skip to content

Commit

Permalink
go-ipfs-config: fix: make sure the Priority type properly implements …
Browse files Browse the repository at this point in the history
…the JSON marshal/unmarshal interfaces
  • Loading branch information
aschmahmann committed Aug 18, 2021
1 parent 19c5336 commit e07560c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ func (p Priority) String() string {
}
}

var _ json.Unmarshaler = (*Flag)(nil)
var _ json.Marshaler = (*Flag)(nil)
var _ json.Unmarshaler = (*Priority)(nil)
var _ json.Marshaler = (*Priority)(nil)

// Duration wraps time.Duration to provide json serialization and deserialization.
//
Expand Down

0 comments on commit e07560c

Please sign in to comment.