remove flow.State

addon-dailer
lqqyt2423 3 years ago
parent 1871fe4b53
commit 9d312a5739

@ -112,8 +112,7 @@ type Flow struct {
Stream bool
done chan struct{}
Id uuid.UUID
State map[string]interface{} // Can add value by addon
Id uuid.UUID
}
func (f *Flow) MarshalJSON() ([]byte, error) {
@ -126,9 +125,8 @@ func (f *Flow) MarshalJSON() ([]byte, error) {
func NewFlow() *Flow {
return &Flow{
done: make(chan struct{}),
Id: uuid.NewV4(),
State: make(map[string]interface{}),
done: make(chan struct{}),
Id: uuid.NewV4(),
}
}

Loading…
Cancel
Save