Move status into a seperate package
This commit is contained in:
parent
4752c0fcec
commit
3fada6ad38
23 changed files with 220 additions and 197 deletions
|
|
@ -2,6 +2,7 @@ package locker
|
|||
|
||||
import (
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/models"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/status"
|
||||
"github.com/FAU-CDI/wisski-distillery/internal/wisski/ingredient"
|
||||
)
|
||||
|
||||
|
|
@ -17,7 +18,7 @@ func (lock *Locker) Locked() (locked bool) {
|
|||
return
|
||||
}
|
||||
|
||||
func (locker *Locker) Fetch(flags ingredient.FetchFlags, info *ingredient.Information) (err error) {
|
||||
func (locker *Locker) Fetch(flags ingredient.FetcherFlags, info *status.Information) (err error) {
|
||||
info.Locked = locker.Locked()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue