Ver código fonte

Swap processor and optionsParser creation

DarthSim 4 dias atrás
pai
commit
52f2991983
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      imgproxy.go

+ 2 - 2
imgproxy.go

@@ -86,12 +86,12 @@ func New(ctx context.Context, config *Config) (*Imgproxy, error) {
 		return nil, err
 	}
 
-	optionsParser, err := optionsparser.New(&config.OptionsParser)
+	processor, err := processing.New(&config.Processing, watermarkImage)
 	if err != nil {
 		return nil, err
 	}
 
-	processor, err := processing.New(&config.Processing, watermarkImage)
+	optionsParser, err := optionsparser.New(&config.OptionsParser)
 	if err != nil {
 		return nil, err
 	}