Skip to content

Commit 3d3ee83

Browse files
committed
refactor(transport): Rename startProc to spawnCommand.
The new name is more descriptive.
1 parent cb61600 commit 3d3ee83

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

client/transport/stdio.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func NewStdio(
6969
}
7070

7171
func (c *Stdio) Start(ctx context.Context) error {
72-
if err := c.startProc(ctx); err != nil {
72+
if err := c.spawnCommand(ctx); err != nil {
7373
return err
7474
}
7575

@@ -83,8 +83,8 @@ func (c *Stdio) Start(ctx context.Context) error {
8383
return nil
8484
}
8585

86-
// startProc spawns a new process running c.command.
87-
func (c *Stdio) startProc(ctx context.Context) error {
86+
// spawnCommand spawns a new process running c.command.
87+
func (c *Stdio) spawnCommand(ctx context.Context) error {
8888
if c.command == "" {
8989
return nil
9090
}

0 commit comments

Comments
 (0)