Skip to content
Snippets Groups Projects
Commit 9e821883 authored by Jake Taylor's avatar Jake Taylor
Browse files

revert some stuff

parent 716d69f2
No related branches found
No related tags found
3 merge requests!510Release,!365attempt to fix mutex segfault in HandleReceivedRequest,!354Channels impl
......@@ -12,7 +12,6 @@ package ud
import (
"encoding/json"
"github.com/pkg/errors"
jww "github.com/spf13/jwalterweatherman"
"gitlab.com/elixxir/client/storage/versioned"
"gitlab.com/elixxir/primitives/fact"
"gitlab.com/xx_network/primitives/netTime"
......@@ -251,7 +250,8 @@ func (s *Store) unmarshalConfirmedFacts(data []byte) (map[fact.Fact]struct{}, er
fStr := fStrings[i]
f, err := fact.UnstringifyFact(fStr)
if err != nil {
return confirmedFacts, errors.WithMessage(err, malformedFactErr)
return confirmedFacts, errors.WithMessagef(err,
malformedFactErr, string(data))
}
confirmedFacts[f] = struct{}{}
......@@ -276,7 +276,6 @@ func (s *Store) unmarshalUnconfirmedFacts(data []byte) (map[string]fact.Fact, er
ufd := ufdList[i]
f, err := fact.UnstringifyFact(ufd.stringifiedFact)
if err != nil {
jww.ERROR.Printf("Bad fact data: %s", data)
return unconfirmedFacts, errors.WithMessagef(err,
malformedFactErr, string(data))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment