Linter: Spelling fixes (#1554)

This commit is contained in:
Gareth Kirwan
2024-05-28 03:19:36 +02:00
committed by GitHub
parent d6bace3995
commit c37a115fc7
7 changed files with 9 additions and 8 deletions

View File

@@ -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()

View File

@@ -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,
},

View File

@@ -5,3 +5,4 @@ flate
freez
zar
insid
totalin

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)
@@ -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())
}