handle multiple plugins for now (append results rather than taking the 'last one' (#185)
This commit is contained in:
parent
1956f52be5
commit
5595070e67
|
@ -209,9 +209,9 @@ func (b *BackendManager) StartAutoCommit() error {
|
|||
|
||||
func (b *BackendManager) ReadAT(timeAT time.Time) ([]map[string]string, error) {
|
||||
var ret []map[string]string
|
||||
var err error
|
||||
for _, plugin := range b.backendPlugins {
|
||||
ret, err = plugin.funcs.ReadAT(timeAT)
|
||||
subret, err := plugin.funcs.ReadAT(timeAT)
|
||||
ret = append(ret, subret...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue