Skip to content

Commit

Permalink
Fix spelling mistakes found thanks to misspell
Browse files Browse the repository at this point in the history
  • Loading branch information
ironsmile committed Jan 18, 2016
1 parent 439366a commit a36468c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion app/init_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cache/lru/lru.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion handler/cache/old_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion mock/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion storage/disk/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion types/app_stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/cache_algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

2 comments on commit a36468c

@client9
Copy link

@client9 client9 commented on a36468c Feb 1, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, misspell failed us!

in mock/storage.go

 -// - ... limit interference due ...:       +// -  limit intereference due 

The original interference is correct.

Fixed in client9/misspell#25

There are a few of these that need to be fixed: client9/misspell#22

Thanks for using Misspell and goreportcard!

nickg

HT: @shawnps

@ironsmile
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, thank you again! Will revert back to the correct spelling :)

Please sign in to comment.