Skip to content

Commit

Permalink
fix: typo (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill authored Sep 28, 2023
1 parent d06c2ff commit 54113be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion loghub/accesslog.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func InitAccessLog(path string, level int) (err error) {
AccessLogger.Hub = hub
AccessLogger.SetLevel(level)
} else {
log.Fatalf("open accesss log error, path=[%s], err=[%s]", path, err.Error())
log.Fatalf("open access log error, path=[%s], err=[%s]", path, err.Error())
}
return
}
Expand Down
6 changes: 3 additions & 3 deletions memcache/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
// or the type of a part if invalid.
ErrInvalidCmd = errors.New("invalid cmd")

// ErrNonMemcacheCmd means that the command is not defined in original memcache protocal.
// ErrNonMemcacheCmd means that the command is not defined in original memcache protocol.
// refer: https://github.com/memcached/memcached/blob/master/doc/protocol.txt
ErrNonMemcacheCmd = errors.New("non memcache command")

Expand All @@ -36,7 +36,7 @@ var (
// ErrBadDataChunk means that data chunk of a value is not match its size flag.
ErrBadDataChunk = errors.New("bad data chunk")

// ErrNetworkError means that a failure happend at reading/writing to a client connection.
// ErrNetworkError means that a failure happened at reading/writing to a client connection.
ErrNetworkError = errors.New("network error")

ErrOOM = errors.New("memory shortage")
Expand Down Expand Up @@ -145,7 +145,7 @@ func (req *Request) Write(w io.Writer) (e error) {
_, e = io.WriteString(w, "\r\n")

default:
logger.Errorf("unkown request cmd: %s", req.Cmd)
logger.Errorf("unknown request cmd: %s", req.Cmd)
return errors.New("unknown cmd: " + req.Cmd)
}

Expand Down
2 changes: 1 addition & 1 deletion memcache/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (s *Server) HandleSignals(errorlog string, accesslog string, analysislog st
}
}
} else {
logger.Infof("signal recieved " + sig.String())
logger.Infof("signal received " + sig.String())
s.Shutdown()
}
}
Expand Down
2 changes: 1 addition & 1 deletion store/hint.go
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ func (hm *hintMgr) loadHintsByChunk(chunkID int) (datasize uint32) {
var err error
for _, p := range paths0 {
if err != nil {
logger.Errorf("a failure of loading hint happend before: curr_hint_path=%s", p)
logger.Errorf("a failure of loading hint happened before: curr_hint_path=%s", p)
utils.Remove(p)
continue
}
Expand Down

0 comments on commit 54113be

Please sign in to comment.