From 6d83c3b3c24a52830d405cd38b505182003e1511 Mon Sep 17 00:00:00 2001 From: aceld Date: Tue, 16 Apr 2024 15:28:59 +0800 Subject: [PATCH] go fmt --- file/config_export.go | 2 +- kis/faas.go | 2 -- kis/function.go | 3 +-- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/file/config_export.go b/file/config_export.go index e22415b..4b80015 100644 --- a/file/config_export.go +++ b/file/config_export.go @@ -7,7 +7,7 @@ import ( "github.com/aceld/kis-flow/common" "github.com/aceld/kis-flow/kis" - "gopkg.in/yaml.v3" + yaml "gopkg.in/yaml.v3" ) // ConfigExportYaml exports the flow configuration and saves it locally diff --git a/kis/faas.go b/kis/faas.go index 5a4f6b7..556a6a5 100644 --- a/kis/faas.go +++ b/kis/faas.go @@ -96,8 +96,6 @@ func NewFaaSDesc(fnName string, f FaaS) (*FaaSDesc, error) { // If the current parameter does not implement the Serialize interface, use the default serialization implementation serializeImpl = defaultSerialize // Use global default implementation } - } else { - // Other types are not supported } // Append the current parameter type to the argsType collection diff --git a/kis/function.go b/kis/function.go index e59dcf6..da59c6e 100644 --- a/kis/function.go +++ b/kis/function.go @@ -6,8 +6,7 @@ import ( "github.com/aceld/kis-flow/config" ) -// Function is the basic computation unit of streaming computation. KisFunction is a basic logical unit of streaming computation, -// any number of KisFunctions can be combined into a KisFlow +// Function is the basic computation unit of streaming computation. KisFunction is a basic logical unit of streaming computation, any number of KisFunctions can be combined into a KisFlow type Function interface { // Call executes the streaming computation logic Call(ctx context.Context, flow Flow) error