Skip to content

Commit 52e6744

Browse files
sourcelliujackysp
authored andcommitted
Modify method parameters and return values (#10288)
1 parent b29e19f commit 52e6744

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugin/conn_ip_example/conn_ip_example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ func OnShutdown(ctx context.Context, manifest *plugin.Manifest) error {
4141
}
4242

4343
// OnGeneralEvent implements TiDB Audit plugin's OnGeneralEvent SPI.
44-
func OnGeneralEvent(ctx context.Context, sctx *variable.SessionVars, event plugin.GeneralEvent, cmd byte, stmt string) error {
44+
func OnGeneralEvent(ctx context.Context, sctx *variable.SessionVars, event plugin.GeneralEvent, cmd string) {
4545
fmt.Println("conn_ip_example notifiy called")
4646
fmt.Println("variable test: ", variable.GetSysVar("conn_ip_example_test_variable").Value)
4747
fmt.Printf("new connection by %s\n", ctx.Value("ip"))
48-
return nil
48+
return
4949
}

0 commit comments

Comments
 (0)