diff --git a/rest/server.go b/rest/server.go index bc8ea13..f4c11d6 100644 --- a/rest/server.go +++ b/rest/server.go @@ -31,7 +31,7 @@ type ( // WithMiddleware with sys client func WithMiddleware(m ...middleware.Middleware) Option { return func(o *options) { - o.middlewareChain = append(o.middlewareChain, m...) + o.middlewareChain = m } }