Exporters now need to return error. This is done because of simple error logging.

This commit is contained in:
Musab Gültekin
2021-04-14 09:30:17 +03:00
parent e3d79e2574
commit 46c4db6b1a
4 changed files with 31 additions and 21 deletions

View File

@ -3,5 +3,5 @@ package export
// Exporter interface is for extracting data to external resources.
// Export functions should wait for new data from exports chan.
type Exporter interface {
Export(exports chan interface{})
Export(exports chan interface{}) error
}