mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-15 07:58:15 +08:00
drop review TODO comment
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
This commit is contained in:
@ -102,7 +102,6 @@ func (v IpnsValidator) getPublicKey(pid peer.ID, entry *pb.IpnsEntry) (ic.PubKey
|
|||||||
if entry.PubKey != nil {
|
if entry.PubKey != nil {
|
||||||
pk, err := ic.UnmarshalPublicKey(entry.PubKey)
|
pk, err := ic.UnmarshalPublicKey(entry.PubKey)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO: i think this counts as a 'malformed record' and should be discarded
|
|
||||||
log.Debugf("public key in ipns record failed to parse: ", err)
|
log.Debugf("public key in ipns record failed to parse: ", err)
|
||||||
return nil, fmt.Errorf("unmarshaling pubkey in record: %s", err)
|
return nil, fmt.Errorf("unmarshaling pubkey in record: %s", err)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user