fix spelling: Fix spelling errors
License: MIT Signed-off-by: Hector Sanjuan <code@hector.link>
This commit is contained in:
parent
7cd2d3d0e1
commit
0693ff429e
|
@ -1,7 +1,7 @@
|
|||
// Package api holds declarations for types used in ipfs-cluster APIs to make
|
||||
// them re-usable across differen tools. This include RPC API "Serial[izable]"
|
||||
// versions for types. The Go API uses natives types, while RPC API,
|
||||
// REST APIs etc use serializable types (i.e. json format). Converstion methods
|
||||
// REST APIs etc use serializable types (i.e. json format). Conversion methods
|
||||
// exists between types.
|
||||
//
|
||||
// Note that all conversion methods ignore any parsing errors. All values must
|
||||
|
|
|
@ -203,7 +203,7 @@ func (cfg *Manager) RegisterComponent(t SectionType, ccfg ComponentConfig) {
|
|||
cfg.sections[t][ccfg.ConfigKey()] = ccfg
|
||||
}
|
||||
|
||||
// Validate checks that all the registered componenets in this
|
||||
// Validate checks that all the registered components in this
|
||||
// Manager have valid configurations. It also makes sure that
|
||||
// the main Cluster compoenent exists.
|
||||
func (cfg *Manager) Validate() error {
|
||||
|
|
|
@ -122,7 +122,7 @@ func (cfg *Config) ConfigKey() string {
|
|||
}
|
||||
|
||||
// Validate checks that this configuration has working values,
|
||||
// at least in appereance.
|
||||
// at least in appearance.
|
||||
func (cfg *Config) Validate() error {
|
||||
if cfg.RaftConfig == nil {
|
||||
return errors.New("no hashicorp/raft.Config")
|
||||
|
@ -222,7 +222,7 @@ func (cfg *Config) ToJSON() ([]byte, error) {
|
|||
|
||||
// Default initializes this configuration with working defaults.
|
||||
func (cfg *Config) Default() error {
|
||||
cfg.DataFolder = "" // empty so it gets ommitted
|
||||
cfg.DataFolder = "" // empty so it gets omitted
|
||||
cfg.WaitForLeaderTimeout = DefaultWaitForLeaderTimeout
|
||||
cfg.NetworkTimeout = DefaultNetworkTimeout
|
||||
cfg.CommitRetries = DefaultCommitRetries
|
||||
|
|
|
@ -156,7 +156,7 @@ func textFormatPrintPin(obj *api.PinSerial) {
|
|||
}
|
||||
|
||||
func textFormatPrintError(obj *api.Error) {
|
||||
fmt.Printf("An error ocurred:\n")
|
||||
fmt.Printf("An error occurred:\n")
|
||||
fmt.Printf(" Code: %d\n", obj.Code)
|
||||
fmt.Printf(" Message: %s\n", obj.Message)
|
||||
}
|
||||
|
|
|
@ -535,7 +535,7 @@ func formatResponse(c *cli.Context, r *http.Response) {
|
|||
case r.StatusCode == http.StatusAccepted:
|
||||
logger.Debug("Request accepted")
|
||||
case r.StatusCode == http.StatusNoContent:
|
||||
logger.Debug("Request suceeded. Response has no content")
|
||||
logger.Debug("Request succeeded. Response has no content")
|
||||
default:
|
||||
enc := c.GlobalString("encoding")
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ configuration.
|
|||
This command upgrades the internal state of the ipfs-cluster node
|
||||
specified in the latest raft snapshot. The state format is migrated from the
|
||||
version of the snapshot to the version supported by the current cluster version.
|
||||
To succesfully run an upgrade of an entire cluster, shut down each peer without
|
||||
To successfully run an upgrade of an entire cluster, shut down each peer without
|
||||
removal, upgrade state using this command, and restart every peer.
|
||||
`,
|
||||
Action: func(c *cli.Context) error {
|
||||
|
|
|
@ -38,7 +38,7 @@ type Component interface {
|
|||
type Consensus interface {
|
||||
Component
|
||||
// Returns a channel to signal that the consensus
|
||||
// algoritm is ready
|
||||
// algorithm is ready
|
||||
Ready() <-chan struct{}
|
||||
// Logs a pin operation
|
||||
LogPin(c api.Pin) error
|
||||
|
@ -152,8 +152,8 @@ type PinAllocator interface {
|
|||
// and providing candidates to the PinAllocator when a pin request arrives.
|
||||
type PeerMonitor interface {
|
||||
Component
|
||||
// LogMetric stores a metric. Metrics are pushed reguarly from each peer
|
||||
// to the active PeerMonitor.
|
||||
// LogMetric stores a metric. Metrics are pushed regularly
|
||||
// from each peer to the active PeerMonitor.
|
||||
LogMetric(api.Metric)
|
||||
// LastMetrics returns a map with the latest metrics of matching name
|
||||
// for the current cluster peers.
|
||||
|
|
|
@ -441,7 +441,7 @@ func (ipfs *Connector) addHandler(w http.ResponseWriter, r *http.Request) {
|
|||
// we need to fail the operation and make sure the
|
||||
// user knows about it.
|
||||
msg := "add operation was successful but "
|
||||
msg += "an error ocurred performing the cluster "
|
||||
msg += "an error occurred performing the cluster "
|
||||
msg += "pin operation: " + err.Error()
|
||||
logger.Error(msg)
|
||||
http.Error(w, msg, 500)
|
||||
|
|
|
@ -2,7 +2,7 @@ package test
|
|||
|
||||
import peer "github.com/libp2p/go-libp2p-peer"
|
||||
|
||||
// Common variables used all arround tests.
|
||||
// Common variables used all around tests.
|
||||
var (
|
||||
TestCid1 = "QmP63DkAFEnDYNjDYBpyNDfttu1fvUw99x1brscPzpqmmq"
|
||||
TestCid2 = "QmP63DkAFEnDYNjDYBpyNDfttu1fvUw99x1brscPzpqmma"
|
||||
|
|
Loading…
Reference in New Issue
Block a user