Skip to content

Commit 60616f9

Browse files
committed
refactor: Move AWS plugin registration to init function
1 parent 2ed8a46 commit 60616f9

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

plugins/aws/aws.wasm

282 Bytes
Binary file not shown.

plugins/aws/plugin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ func (p *awsPlugin) Check(ctx context.Context, configBytes []byte) (*entities.Re
5151
return handler(ctx, req)
5252
}
5353

54-
func main() {
54+
func init() {
5555
plugin.Register(&awsPlugin{})
5656
}
57+
58+
func main() {}

0 commit comments

Comments
 (0)