core/bloombits: fix interface conversion

This commit is contained in:
Zsolt Felfoldi 2017-10-27 15:53:44 +02:00
parent 2c77f33745
commit 2d8c1490f2

View file

@ -534,7 +534,10 @@ func (s *MatcherSession) Close() {
// Error returns any failure encountered during the matching session. // Error returns any failure encountered during the matching session.
func (s *MatcherSession) Error() error { func (s *MatcherSession) Error() error {
return s.err.Load().(error) if err := s.err.Load(); err != nil {
return err.(error)
}
return nil
} }
// AllocateRetrieval assigns a bloom bit index to a client process that can either // AllocateRetrieval assigns a bloom bit index to a client process that can either