Unverified Commit 3845b8ce authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #18 from libp2p/fix/error-check-uuid

fix the error check when constructing UUIDs
parents 21f23aac 92bee90c
...@@ -32,7 +32,7 @@ func Error(e error) logging.Loggable { ...@@ -32,7 +32,7 @@ func Error(e error) logging.Loggable {
func Uuid(key string) logging.Metadata { func Uuid(key string) logging.Metadata {
ids := "#UUID-ERROR#" ids := "#UUID-ERROR#"
if id, err := uuid.NewV4(); err != nil { if id, err := uuid.NewV4(); err == nil {
ids = id.String() ids = id.String()
} }
return logging.Metadata{ return logging.Metadata{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment