Skip to content

Commit 03974d9

Browse files
authored
Merge pull request jpillora#50 from anacrolix/trivial
Some trivial changes
2 parents ef4bd3d + 98a3847 commit 03974d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

client/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ func (c *Client) loop() {
199199
}
200200
c.config.shared.Version = chshare.BuildVersion
201201
conf, _ := chshare.EncodeConfig(c.config.shared)
202-
c.Debugf("Sending configurating")
202+
c.Debugf("Sending config")
203203
t0 := time.Now()
204204
_, configerr, err := sshConn.SendRequest("config", true, conf)
205205
if err != nil {
@@ -210,7 +210,7 @@ func (c *Client) loop() {
210210
c.Infof(string(configerr))
211211
break
212212
}
213-
c.Infof("Connected (Latency %s)", time.Now().Sub(t0))
213+
c.Infof("Connected (Latency %s)", time.Since(t0))
214214
//connected
215215
b.Reset()
216216
c.sshConn = sshConn

server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func (s *Server) Start(host, port string) error {
145145
}
146146
s.Infof("Listening on %s...", port)
147147

148-
h := http.Handler(http.HandlerFunc(s.handleHTTP))
148+
var h http.Handler = http.HandlerFunc(s.handleHTTP)
149149
if s.Debug {
150150
h = requestlog.Wrap(h)
151151
}

0 commit comments

Comments
 (0)