Skip to content

Commit

Permalink
chore: fix function names (vitessio#15545)
Browse files Browse the repository at this point in the history
Signed-off-by: availhang <[email protected]>
  • Loading branch information
George Ma authored Mar 22, 2024
1 parent b327743 commit a06cf7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go/vt/vtadmin/http/tablets.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func StartReplication(ctx context.Context, r Request, api *API) *JSONResponse {
return NewJSONResponse(result, err)
}

// StartReplication stops replication on the specified tablet.
// StopReplication stops replication on the specified tablet.
func StopReplication(ctx context.Context, r Request, api *API) *JSONResponse {
vars := r.Vars()

Expand Down
4 changes: 2 additions & 2 deletions go/vt/vtgate/engine/fuzz.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func execUpdate(f *fuzz.ConsumeFuzzer) {
_, _ = upd.TryExecute(ctx, vc, map[string]*querypb.BindVariable{}, false)
}

// execUpdate implements a wrapper to fuzz Insert.Tryexecute()
// execInsert implements a wrapper to fuzz Insert.Tryexecute()
func execInsert(f *fuzz.ConsumeFuzzer) {
ins := &Insert{}
err := f.GenerateStruct(ins)
Expand All @@ -91,7 +91,7 @@ func execInsert(f *fuzz.ConsumeFuzzer) {
_, _ = ins.TryExecute(ctx, vc, map[string]*querypb.BindVariable{}, false)
}

// execUpdate implements a wrapper to fuzz Route.Tryexecute()
// execRoute implements a wrapper to fuzz Route.Tryexecute()
func execRoute(f *fuzz.ConsumeFuzzer) {
sel := &Route{}
err := f.GenerateStruct(sel)
Expand Down
2 changes: 1 addition & 1 deletion go/vt/vtgate/plugin_mysql_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ func initTLSConfig(ctx context.Context, srv *mysqlServer, mysqlSslCert, mysqlSsl
return nil
}

// initiMySQLProtocol starts the mysql protocol.
// initMySQLProtocol starts the mysql protocol.
// It should be called only once in a process.
func initMySQLProtocol(vtgate *VTGate) *mysqlServer {
// Flag is not set, just return.
Expand Down

0 comments on commit a06cf7d

Please sign in to comment.