Merge pull request #3421 from IPFSMain-Official/master

remove the unnecessary err check
This commit is contained in:
Łukasz Magiera 2020-08-31 10:08:36 +02:00 committed by GitHub
commit e1e01524e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,11 +203,9 @@ func New(api Provider, ds dtypes.MetadataDS, netName dtypes.NetworkName) (*Messa
verifcache, _ := lru.New2Q(build.VerifSigCacheSize) verifcache, _ := lru.New2Q(build.VerifSigCacheSize)
cfg, err := loadConfig(ds) cfg, err := loadConfig(ds)
if err != nil {
if err != nil { if err != nil {
return nil, xerrors.Errorf("error loading mpool config: %w", err) return nil, xerrors.Errorf("error loading mpool config: %w", err)
} }
}
mp := &MessagePool{ mp := &MessagePool{
ds: ds, ds: ds,