diff --git a/server/v2/commands.go b/server/v2/commands.go index 51cf5cdf66ed..f87911ba940f 100644 --- a/server/v2/commands.go +++ b/server/v2/commands.go @@ -17,7 +17,7 @@ import ( func Commands(logger log.Logger, homePath string, modules ...ServerModule) (CLIConfig, error) { if len(modules) == 0 { // TODO figure if we should define default modules - // and if so it should be done here to avoid uncessary dependencies + // and if so it should be done here to avoid unnecessary dependencies return CLIConfig{}, errors.New("no modules provided") } diff --git a/store/pruning/manager.go b/store/pruning/manager.go index bd70cc64f86e..3656d07ed36d 100644 --- a/store/pruning/manager.go +++ b/store/pruning/manager.go @@ -21,7 +21,7 @@ type Manager struct { opts types.PruningOptions snapshotInterval uint64 // Snapshots are taken in a separate goroutine from the regular execution - // and can be delivered asynchrounously via HandleSnapshotHeight. + // and can be delivered asynchronously via HandleSnapshotHeight. // Therefore, we sync access to pruneSnapshotHeights with this mutex. pruneSnapshotHeightsMx sync.RWMutex // These are the heights that are multiples of snapshotInterval and kept for state sync snapshots.