scayyold the SDR task

This commit is contained in:
Łukasz Magiera 2023-12-18 18:29:10 +01:00
parent e89fff2308
commit bb42a70143

View File

@ -0,0 +1,44 @@
package lpseal
import (
"github.com/filecoin-project/lotus/lib/harmony/harmonydb"
"github.com/filecoin-project/lotus/lib/harmony/harmonytask"
"github.com/filecoin-project/lotus/lib/harmony/resources"
)
type SDRAPI interface {
}
type SDRTask struct {
api SDRAPI
db *harmonydb.DB
maxSDR int
}
func (s *SDRTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error) {
//TODO implement me
panic("implement me")
}
func (s *SDRTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error) {
//TODO implement me
panic("implement me")
}
func (s *SDRTask) TypeDetails() harmonytask.TaskTypeDetails {
return harmonytask.TaskTypeDetails{
Max: s.maxSDR,
Name: "SDR",
Cost: resources.Resources{},
MaxFailures: 0,
Follows: nil,
}
}
func (s *SDRTask) Adder(taskFunc harmonytask.AddTaskFunc) {
//TODO implement me
panic("implement me")
}
var _ harmonytask.TaskInterface = &SDRTask{}