Skip to content

Commit

Permalink
do some imports sort
Browse files Browse the repository at this point in the history
  • Loading branch information
aceld committed Apr 15, 2024
1 parent 955bed4 commit 75dde9a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 4 additions & 3 deletions config/kis_func_config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package config

import (
"errors"
"fmt"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/log"
)
Expand Down Expand Up @@ -75,7 +76,7 @@ func NewFuncConfig(
// AddConnConfig WithConn binds Function to Connector
func (fConf *KisFuncConfig) AddConnConfig(cConf *KisConnConfig) error {
if cConf == nil {
return errors.New("KisConnConfig is nil")
return fmt.Errorf("KisConnConfig is nil")
}

// Function needs to be associated with Connector
Expand All @@ -93,7 +94,7 @@ func (fConf *KisFuncConfig) AddConnConfig(cConf *KisConnConfig) error {
// GetConnConfig gets the Connector configuration
func (fConf *KisFuncConfig) GetConnConfig() (*KisConnConfig, error) {
if fConf.connConf == nil {
return nil, errors.New("KisFuncConfig.connConf not set")
return nil, fmt.Errorf("KisFuncConfig.connConf not set")
}

return fConf.connConf, nil
Expand Down
1 change: 1 addition & 0 deletions flow/kis_flow_action.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"errors"
"fmt"

"github.com/aceld/kis-flow/kis"
)

Expand Down
5 changes: 3 additions & 2 deletions flow/kis_flow_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"context"
"errors"
"fmt"
"reflect"
"time"

"github.com/aceld/kis-flow/common"
"github.com/aceld/kis-flow/config"
"github.com/aceld/kis-flow/log"
"github.com/aceld/kis-flow/metrics"
"github.com/patrickmn/go-cache"
"reflect"
"time"
)

// CommitRow submits a single row of data to the Flow; multiple rows can be submitted multiple times
Expand Down
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ require (
github.com/prometheus/client_model v0.3.0 // indirect
github.com/prometheus/common v0.37.0 // indirect
github.com/prometheus/procfs v0.8.0 // indirect
github.com/quasilyte/go-ruleguard v0.4.2 // indirect
github.com/quasilyte/go-ruleguard/dsl v0.3.22 // indirect
github.com/quasilyte/go-ruleguard/rules v0.0.0-20240222105419-173c282c317c // indirect
golang.org/x/sys v0.19.0 // indirect
google.golang.org/protobuf v1.28.1 // indirect
)

0 comments on commit 75dde9a

Please sign in to comment.