Procházet zdrojové kódy

Swap processor and optionsParser creation

DarthSim před 5 dny
rodič
revize
52f2991983
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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
 	}