fix thumbnailer for the new spaces approach

This commit is contained in:
David Christofas
2022-01-07 16:32:57 +01:00
parent 76592e21d8
commit f602c50ff9
8 changed files with 64 additions and 27 deletions
+4 -1
View File
@@ -23,7 +23,7 @@ func Server(opts ...Option) (http.Service, error) {
http.Flags(options.Flags...),
)
handle := svc.NewService(
handle, err := svc.NewService(
svc.Logger(options.Logger),
svc.Config(options.Config),
svc.Middleware(
@@ -47,6 +47,9 @@ func Server(opts ...Option) (http.Service, error) {
),
),
)
if err != nil {
return http.Service{}, err
}
{
handle = svc.NewInstrument(handle, options.Metrics)