lib/http: Simplify server.go to export an http server rather than an interface

This also makes the implementation public.
This commit is contained in:
Tom Mombourquette
2022-12-15 12:38:09 +00:00
committed by Nick Craig-Wood
parent 2a2fcf1012
commit ec7cc2b3c3
5 changed files with 33 additions and 37 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ control the stats printing.
type serveCmd struct {
f fs.Fs
vfs *vfs.VFS
server libhttp.Server
server *libhttp.Server
}
func run(ctx context.Context, f fs.Fs, opt Options) (*serveCmd, error) {