957762d0ef023d2c1ce85ca8710c346598d8122f

Author
Toby Padilla <toby@charm.sh>
Committer
Toby Padilla <toby@charm.sh>
Date

Message

Rename wish.WithMiddlewares -> wish.WithMiddleware

Diff

 1diff --git a/server.go b/server.go
 2index fc5ae2a24f058545ada0a409d69033521070e24b..1205fd70047ab703bf8a3a46b3a51064d2320146 100644
 3--- a/server.go
 4+++ b/server.go
 5@@ -31,7 +31,7 @@ func NewServer(host string, port int, serverKeyPath string, repoPath string, aut
 6 		ssh.PasswordAuth(cfg.PasswordHandler),
 7 		wish.WithAddress(fmt.Sprintf("%s:%d", host, port)),
 8 		wish.WithHostKeyPath(serverKeyPath),
 9-		wish.WithMiddlewares(
10+		wish.WithMiddleware(
11 			bm.Middleware(tui.SessionHandler(cfg)),
12 			gm.Middleware(repoPath, cfg),
13 			lm.Middleware(),