diff options
| author | Paul Buetow <git@mx.buetow.org> | 2021-04-03 14:20:56 +0100 |
|---|---|---|
| committer | Paul Buetow <git@mx.buetow.org> | 2021-04-03 14:25:37 +0100 |
| commit | c1eb0f499c6cc1ec03e18bd2b50a4d52bbf4d138 (patch) | |
| tree | a61495d0270761cad28b8e0dd5f407e283df0f11 | |
| parent | 66866e4adbf44cde4f570c44f0f577aa92f8cf20 (diff) | |
Fix misspellings
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | internal/discovery/discovery.go | 2 | ||||
| -rw-r--r-- | internal/server/handlers/serverhandler.go | 2 | ||||
| -rw-r--r-- | internal/server/server.go | 2 | ||||
| -rw-r--r-- | internal/user/server/user.go | 2 |
5 files changed, 5 insertions, 5 deletions
@@ -3,7 +3,7 @@ DTail  -[](https://www.apache.org/license/LICENSE-2.0.html) [](https://goreportcard.com/report/github.com/mimecast/dtail) [](https://www.vbrandl.net/post/2019-05-03_hits-of-code/)    +[](https://www.apache.org/licenses/LICENSE-2.0.html) [](https://goreportcard.com/report/github.com/mimecast/dtail) [](https://www.vbrandl.net/post/2019-05-03_hits-of-code/)    DTail (a distributed tail program) is a DevOps tool for engineers programmed in Google Go for following (tailing), catting and grepping (including gzip and zstd decompression support) log files on many machines concurrently. An advanced feature of DTail is to execute distributed mapreduce aggregations across many machines. diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go index 3608ce7..a25b136 100644 --- a/internal/discovery/discovery.go +++ b/internal/discovery/discovery.go @@ -24,7 +24,7 @@ const ( type Discovery struct { // To plug in a custom server discovery module. module string - // To specifiy optional server discovery module options. + // To specify optional server discovery module options. options string // To either filter a server list or to secify an exact list. server string diff --git a/internal/server/handlers/serverhandler.go b/internal/server/handlers/serverhandler.go index 7da6012..39d5d5f 100644 --- a/internal/server/handlers/serverhandler.go +++ b/internal/server/handlers/serverhandler.go @@ -89,7 +89,7 @@ func (h *ServerHandler) Read(p []byte) (n int, err error) { select { case message := <-h.serverMessages: if len(message) == 0 { - logger.Warn(h.user, "Empty message recieved") + logger.Warn(h.user, "Empty message received") return } if message[0] == '.' { diff --git a/internal/server/server.go b/internal/server/server.go index 73822d5..3640208 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -204,7 +204,7 @@ func (s *Server) handleRequests(ctx context.Context, sshConn gossh.Conn, in <-ch default: req.Reply(false, nil) - return fmt.Errorf("Closing SSH connection as unknown request recieved|%s|%v", + return fmt.Errorf("Closing SSH connection as unknown request received|%s|%v", req.Type, payload.Value) } } diff --git a/internal/user/server/user.go b/internal/user/server/user.go index 637945c..fc5d6c1 100644 --- a/internal/user/server/user.go +++ b/internal/user/server/user.go @@ -37,7 +37,7 @@ func (u *User) String() string { return fmt.Sprintf("%s@%s", u.Name, u.remoteAddress) } -// HasFilePermission is used to determine whether user is alowed to read a file. +// HasFilePermission is used to determine whether user is allowwed to read a file. func (u *User) HasFilePermission(filePath, permissionType string) (hasPermission bool) { logger.Debug(u, filePath, permissionType, "Checking config permissions") if config.ServerRelaxedAuthEnable { |
