Skip to content

Commit a36468c

Browse files
committed
Fix spelling mistakes found thanks to misspell
1 parent 439366a commit a36468c

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

app/app.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func (a *Application) Stop() error {
156156
return err
157157
}
158158

159-
// Reload takse a new configuration and replaces the old one with it. After succesful
159+
// Reload takse a new configuration and replaces the old one with it. After successful
160160
// reload the things that are written in the new config will be in use.
161161
func (a *Application) Reload(cfg *config.Config) error {
162162
if err := a.checkConfigCouldBeReloaded(cfg); err != nil {

app/init_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func appFromExampleConfig(t *testing.T) (*Application, func()) {
4444

4545
//!TODO: maybe construct an config ourselves
4646
// We are using the example config for this test. This might not be
47-
// so great an idea. But I tried to construct a config programatically
47+
// so great an idea. But I tried to construct a config programmatically
4848
// for about an hour and a half and I failed.
4949
var configGetter = configGetterForExampleConfig(path, path1, path2)
5050
app, err := New(types.AppVersion{}, configGetter)

cache/lru/lru.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func (tc *TieredLRUCache) resize() {
343343
tc.tierListSize = newtierListSize
344344
}
345345

346-
// remove the elements with time inbetween removes,
346+
// remove the elements with time in between removes,
347347
// but only if they are not in the cache at the time of removal
348348
func (tc *TieredLRUCache) throttledRemove(indexes []types.ObjectIndex) {
349349
defer func() {

handler/cache/old_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
// from time to time. In fact it does quite often for me.
2121
//
2222
// Most of the time the test fails with a panic. And most of the time
23-
// the panic is in the runtime. So isntead of a error message via t.Error
23+
// the panic is in the runtime. So instead of a error message via t.Error
2424
// the test fails with a panic.
2525
func TestStorageHeadersFunctionWithManyGoroutines(t *testing.T) {
2626
t.Parallel()

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ func upTheLimits() error {
123123
if err := upLimitToHard(syscall.RLIMIT_NOFILE); err != nil {
124124
return err
125125
}
126-
// !TODO raise other limits when necesary
126+
// !TODO raise other limits when necessary
127127
return nil
128128
}
129129

mock/storage.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515

1616
//!TODO: Make this storage thread safe; implementation details:
1717
// - local per-key mutexes where possible? only for parts manipulation?
18-
// - multiple maps as buckets to limit interference due to global locking:
18+
// - multiple maps as buckets to limit intereference due to global locking:
1919
// - get the number of maps from config
2020
// - each map has its own rwmutex
2121
// - obj.hash mod N to determine which map is responsible for an object

storage/disk/utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ func (s *Disk) getObjectIDPath(id *types.ObjectID) string {
3737
// !TODO redo this with more []byte appending(we know how big it will be)
3838
// less string concatination
3939
h := id.StrHash()
40-
// Disk objects are writen 2 levels deep with maximum of 256 folders in each
40+
// Disk objects are written 2 levels deep with maximum of 256 folders in each
4141
if s.skipCacheKeyInPath {
4242
return filepath.Join(s.path, h[0:2], h[2:4], h)
4343
}

types/app_stats.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77

88
// App is an interface for an application to implement
99
type App interface {
10-
// Stats returns applicaiton wide stats
10+
// Stats returns application wide stats
1111
Stats() AppStats
1212

1313
// Started returns the time at which the app was started

types/cache_algorithm.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type CacheAlgorithm interface {
2828
// Remove all of the provided object indexes from the cache.
2929
Remove(...*ObjectIndex)
3030

31-
// ChangeConfig changes the changable parts of the a CacheAlgorithm:
31+
// ChangeConfig changes the changeable parts of the a CacheAlgorithm:
3232
// the timeout and count for removing objects in bulk
3333
// and the count of objects it contains. Automatically resizing the algorithm
3434
// if it's required

0 commit comments

Comments
 (0)