Skip to content

Commit

Permalink
remove factory initialisation from NewPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
kaidaguerre committed Nov 14, 2024
1 parent 9ecbc43 commit 960a1d9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions aws/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"github.com/turbot/go-kit/helpers"
"github.com/turbot/tailpipe-plugin-aws/config"
"github.com/turbot/tailpipe-plugin-sdk/plugin"
"github.com/turbot/tailpipe-plugin-sdk/table"
// reference the table package to ensure that the tables are registered by the init functions
_ "github.com/turbot/tailpipe-plugin-aws/tables"
)
Expand All @@ -20,15 +19,9 @@ func NewPlugin() (_ plugin.TailpipePlugin, err error) {
}
}()

//fmt.Println(tables.AlbAccessLogTable{})
p := &Plugin{
PluginImpl: plugin.NewPluginImpl("aws", config.NewAwsConnection),
}

// initialise table factory
if err := table.Factory.Init(); err != nil {
return nil, err
}

return p, nil
}

0 comments on commit 960a1d9

Please sign in to comment.