diff --git a/app/app.go b/app/app.go index 093994f..fb481a6 100644 --- a/app/app.go +++ b/app/app.go @@ -156,7 +156,7 @@ func (a *Application) Stop() error { return err } -// Reload takse a new configuration and replaces the old one with it. After succesful +// Reload takse a new configuration and replaces the old one with it. After successful // reload the things that are written in the new config will be in use. func (a *Application) Reload(cfg *config.Config) error { if err := a.checkConfigCouldBeReloaded(cfg); err != nil { diff --git a/app/init_test.go b/app/init_test.go index b8cca4f..7423bce 100644 --- a/app/init_test.go +++ b/app/init_test.go @@ -44,7 +44,7 @@ func appFromExampleConfig(t *testing.T) (*Application, func()) { //!TODO: maybe construct an config ourselves // We are using the example config for this test. This might not be - // so great an idea. But I tried to construct a config programatically + // so great an idea. But I tried to construct a config programmatically // for about an hour and a half and I failed. var configGetter = configGetterForExampleConfig(path, path1, path2) app, err := New(types.AppVersion{}, configGetter) diff --git a/cache/lru/lru.go b/cache/lru/lru.go index bd69d29..d86d0a4 100644 --- a/cache/lru/lru.go +++ b/cache/lru/lru.go @@ -343,7 +343,7 @@ func (tc *TieredLRUCache) resize() { tc.tierListSize = newtierListSize } -// remove the elements with time inbetween removes, +// remove the elements with time in between removes, // but only if they are not in the cache at the time of removal func (tc *TieredLRUCache) throttledRemove(indexes []types.ObjectIndex) { defer func() { diff --git a/handler/cache/old_test.go b/handler/cache/old_test.go index 952f733..fa1a168 100644 --- a/handler/cache/old_test.go +++ b/handler/cache/old_test.go @@ -20,7 +20,7 @@ import ( // from time to time. In fact it does quite often for me. // // Most of the time the test fails with a panic. And most of the time -// the panic is in the runtime. So isntead of a error message via t.Error +// the panic is in the runtime. So instead of a error message via t.Error // the test fails with a panic. func TestStorageHeadersFunctionWithManyGoroutines(t *testing.T) { t.Parallel() diff --git a/main.go b/main.go index 2ca421d..7c1adfb 100644 --- a/main.go +++ b/main.go @@ -123,7 +123,7 @@ func upTheLimits() error { if err := upLimitToHard(syscall.RLIMIT_NOFILE); err != nil { return err } - // !TODO raise other limits when necesary + // !TODO raise other limits when necessary return nil } diff --git a/mock/storage.go b/mock/storage.go index a332e1f..a9944b6 100644 --- a/mock/storage.go +++ b/mock/storage.go @@ -15,7 +15,7 @@ import ( //!TODO: Make this storage thread safe; implementation details: // - local per-key mutexes where possible? only for parts manipulation? -// - multiple maps as buckets to limit interference due to global locking: +// - multiple maps as buckets to limit intereference due to global locking: // - get the number of maps from config // - each map has its own rwmutex // - obj.hash mod N to determine which map is responsible for an object diff --git a/storage/disk/utils.go b/storage/disk/utils.go index 46218c2..be407c8 100644 --- a/storage/disk/utils.go +++ b/storage/disk/utils.go @@ -37,7 +37,7 @@ func (s *Disk) getObjectIDPath(id *types.ObjectID) string { // !TODO redo this with more []byte appending(we know how big it will be) // less string concatination h := id.StrHash() - // Disk objects are writen 2 levels deep with maximum of 256 folders in each + // Disk objects are written 2 levels deep with maximum of 256 folders in each if s.skipCacheKeyInPath { return filepath.Join(s.path, h[0:2], h[2:4], h) } diff --git a/types/app_stats.go b/types/app_stats.go index 17f9ce9..4741a07 100644 --- a/types/app_stats.go +++ b/types/app_stats.go @@ -7,7 +7,7 @@ import ( // App is an interface for an application to implement type App interface { - // Stats returns applicaiton wide stats + // Stats returns application wide stats Stats() AppStats // Started returns the time at which the app was started diff --git a/types/cache_algorithm.go b/types/cache_algorithm.go index fd539c3..caa54ea 100644 --- a/types/cache_algorithm.go +++ b/types/cache_algorithm.go @@ -28,7 +28,7 @@ type CacheAlgorithm interface { // Remove all of the provided object indexes from the cache. Remove(...*ObjectIndex) - // ChangeConfig changes the changable parts of the a CacheAlgorithm: + // ChangeConfig changes the changeable parts of the a CacheAlgorithm: // the timeout and count for removing objects in bulk // and the count of objects it contains. Automatically resizing the algorithm // if it's required