From 9d312a5739bd3a0c0aeddb96b8b4f4a895fafe2f Mon Sep 17 00:00:00 2001 From: lqqyt2423 <974923609@qq.com> Date: Tue, 7 Jun 2022 17:36:02 +0800 Subject: [PATCH] remove flow.State --- flow/flow.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/flow/flow.go b/flow/flow.go index f79679d..ffc4453 100644 --- a/flow/flow.go +++ b/flow/flow.go @@ -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(), } }