Make also deps recalculation concurrent

This commit is contained in:
Ettore Di Giacinto
2019-11-01 16:26:03 +01:00
parent eef03f8909
commit ef1d0e5573
5 changed files with 60 additions and 23 deletions

View File

@@ -88,6 +88,11 @@ func (db *InMemoryDatabase) GetPackage(ID string) (Package, error) {
return p, nil
}
// Not implemented
func (db *InMemoryDatabase) GetAllPackages(packages chan Package) error {
return errors.New("Not implemented")
}
// Encode encodes the package to string.
// It returns an ID which can be used to retrieve the package later on.
func (db *InMemoryDatabase) CreatePackage(p Package) (string, error) {