Skip to content

Commit

Permalink
Linter: Spelling fixes (#1554)
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk authored May 28, 2024
1 parent d6bace3 commit c37a115
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
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

0 comments on commit c37a115

Please sign in to comment.