fix: typos in comments (#10)
This commit is contained in:
committed by
GitHub
parent
e6c7b053f9
commit
38dfe1a380
@@ -6,7 +6,7 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
)
|
)
|
||||||
|
|
||||||
// A Config describes application cofig.
|
// A Config describes application config.
|
||||||
type Config struct {
|
type Config struct {
|
||||||
PoolSize int `json:"pool_size"`
|
PoolSize int `json:"pool_size"`
|
||||||
Verbose bool `json:"verbose"`
|
Verbose bool `json:"verbose"`
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ func (e *Docker) exec(box *config.Box, step *config.Step, req Request, dir strin
|
|||||||
|
|
||||||
if err.Error() == "signal: killed" {
|
if err.Error() == "signal: killed" {
|
||||||
if step.Action == actionRun {
|
if step.Action == actionRun {
|
||||||
// we have to "docker kill" the container here, because the proccess
|
// we have to "docker kill" the container here, because the process
|
||||||
// inside the container is not related to the "docker run" process,
|
// inside the container is not related to the "docker run" process,
|
||||||
// and will hang forever after the "docker run" process is killed
|
// and will hang forever after the "docker run" process is killed
|
||||||
go func() {
|
go func() {
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ func (err ExecutionError) Unwrap() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// An ArgumentError is returned if code execution failed
|
// An ArgumentError is returned if code execution failed
|
||||||
// due to the invalid value of the request agrument.
|
// due to the invalid value of the request argument.
|
||||||
type ArgumentError struct {
|
type ArgumentError struct {
|
||||||
name string
|
name string
|
||||||
reason error
|
reason error
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ func (m *Memory) MustNotHave(t *testing.T, message ...string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Clear cleares the memory.
|
// Clear clears the memory.
|
||||||
func (m *Memory) Clear() {
|
func (m *Memory) Clear() {
|
||||||
m.Lines = []string{}
|
m.Lines = []string{}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ var engineConstr = map[string]func(*config.Config, string, string) engine.Engine
|
|||||||
}
|
}
|
||||||
|
|
||||||
// engines is the registry of command executors.
|
// engines is the registry of command executors.
|
||||||
// Each engine executes a specific command in a specifix sandbox.
|
// Each engine executes a specific command in a specific sandbox.
|
||||||
// sandbox : command : engine
|
// sandbox : command : engine
|
||||||
// TODO: Maybe it's better to create a single instance of each engine
|
// TODO: Maybe it's better to create a single instance of each engine
|
||||||
// and pass the sandbox and command as arguments to the Exec.
|
// and pass the sandbox and command as arguments to the Exec.
|
||||||
|
|||||||
Reference in New Issue
Block a user