Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter: Spelling fixes #1554

Merged
merged 1 commit into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backtester/engine/grpcserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (s *GRPCServer) StartRPCRESTProxy() error {
targetDir := utils.GetTLSDir(s.config.GRPC.TLSDir)
creds, err := credentials.NewClientTLSFromFile(filepath.Join(targetDir, "cert.pem"), "")
if err != nil {
return fmt.Errorf("unabled to start gRPC proxy. Err: %w", err)
return fmt.Errorf("unable to start gRPC proxy. Err: %w", err)
}

mux := runtime.NewServeMux()
Expand Down
4 changes: 2 additions & 2 deletions cmd/gctcli/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -4035,13 +4035,13 @@ var getHistoricCandlesExtendedCommand = &cli.Command{
},
&cli.StringFlag{
Name: "start",
Usage: "the date to begin retrieveing candles. Any candles before this date will be filtered",
Usage: "the date to begin retrieving candles. Any candles before this date will be filtered",
Value: time.Now().AddDate(0, -1, 0).Format(time.DateTime),
Destination: &startTime,
},
&cli.StringFlag{
Name: "end",
Usage: "the date to end retrieveing candles. Any candles after this date will be filtered",
Usage: "the date to end retrieving candles. Any candles after this date will be filtered",
Value: time.Now().Format(time.DateTime),
Destination: &endTime,
},
Expand Down
1 change: 1 addition & 0 deletions contrib/spellcheck/ignore_words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ flate
freez
zar
insid
totalin
2 changes: 1 addition & 1 deletion currency/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (c Code) Upper() Code {
return c
}

// UnmarshalJSON comforms type to the umarshaler interface
// UnmarshalJSON conforms type to the umarshaler interface
func (c *Code) UnmarshalJSON(d []byte) error {
var newcode string
err := json.Unmarshal(d, &newcode)
Expand Down
2 changes: 1 addition & 1 deletion currency/currencies.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func (c Currencies) Join() string {
return strings.Join(c.Strings(), ",")
}

// UnmarshalJSON comforms type to the umarshaler interface
// UnmarshalJSON conforms type to the umarshaler interface
func (c *Currencies) UnmarshalJSON(d []byte) error {
var configCurrencies string
err := json.Unmarshal(d, &configCurrencies)
Expand Down
2 changes: 1 addition & 1 deletion currency/pairs.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func (p Pairs) Format(pairFmt PairFormat) Pairs {
return pairs
}

// UnmarshalJSON comforms type to the umarshaler interface
// UnmarshalJSON conforms type to the umarshaler interface
func (p *Pairs) UnmarshalJSON(d []byte) error {
var pairs string
err := json.Unmarshal(d, &pairs)
Expand Down
4 changes: 2 additions & 2 deletions exchanges/asset/asset.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (a Item) IsValid() bool {
return a != Empty && supportedFlag&a == a
}

// UnmarshalJSON comforms type to the umarshaler interface
// UnmarshalJSON conforms type to the umarshaler interface
func (a *Item) UnmarshalJSON(d []byte) error {
var assetString string
err := json.Unmarshal(d, &assetString)
Expand All @@ -171,7 +171,7 @@ func (a *Item) UnmarshalJSON(d []byte) error {
return nil
}

// MarshalJSON comforms type to the marshaller interface
// MarshalJSON conforms type to the marshaller interface
func (a Item) MarshalJSON() ([]byte, error) {
return json.Marshal(a.String())
}
Expand Down
Loading