@@ -21,8 +21,6 @@ pub struct AdServer {
2121pub struct Publisher {
2222 pub domain : String ,
2323 pub cookie_domain : String ,
24- #[ deprecated( note = "Use origin_url instead - dynamic backends are created automatically" ) ]
25- pub origin_backend : String ,
2624 pub origin_url : String ,
2725 /// Secret used to encrypt/decrypt proxied URLs in `/first-party/proxy`.
2826 /// Keep this secret stable to allow existing links to decode.
@@ -39,7 +37,6 @@ impl Publisher {
3937 /// let publisher = Publisher {
4038 /// domain: "example.com".to_string(),
4139 /// cookie_domain: ".example.com".to_string(),
42- /// origin_backend: "edgepubs_main_be".to_string(),
4340 /// origin_url: "https://origin.example.com:8080".to_string(),
4441 /// proxy_secret: "proxy-secret".to_string(),
4542 /// };
@@ -531,7 +528,6 @@ mod tests {
531528 let publisher = Publisher {
532529 domain : "example.com" . to_string ( ) ,
533530 cookie_domain : ".example.com" . to_string ( ) ,
534- origin_backend : "publisher_origin" . to_string ( ) ,
535531 origin_url : "https://origin.example.com:8080" . to_string ( ) ,
536532 proxy_secret : "test-secret" . to_string ( ) ,
537533 } ;
@@ -541,7 +537,6 @@ mod tests {
541537 let publisher = Publisher {
542538 domain : "example.com" . to_string ( ) ,
543539 cookie_domain : ".example.com" . to_string ( ) ,
544- origin_backend : "publisher_origin" . to_string ( ) ,
545540 origin_url : "https://origin.example.com" . to_string ( ) ,
546541 proxy_secret : "test-secret" . to_string ( ) ,
547542 } ;
@@ -551,7 +546,6 @@ mod tests {
551546 let publisher = Publisher {
552547 domain : "example.com" . to_string ( ) ,
553548 cookie_domain : ".example.com" . to_string ( ) ,
554- origin_backend : "publisher_origin" . to_string ( ) ,
555549 origin_url : "http://localhost:9090" . to_string ( ) ,
556550 proxy_secret : "test-secret" . to_string ( ) ,
557551 } ;
@@ -561,7 +555,6 @@ mod tests {
561555 let publisher = Publisher {
562556 domain : "example.com" . to_string ( ) ,
563557 cookie_domain : ".example.com" . to_string ( ) ,
564- origin_backend : "publisher_origin" . to_string ( ) ,
565558 origin_url : "localhost:9090" . to_string ( ) ,
566559 proxy_secret : "test-secret" . to_string ( ) ,
567560 } ;
@@ -571,7 +564,6 @@ mod tests {
571564 let publisher = Publisher {
572565 domain : "example.com" . to_string ( ) ,
573566 cookie_domain : ".example.com" . to_string ( ) ,
574- origin_backend : "publisher_origin" . to_string ( ) ,
575567 origin_url : "http://192.168.1.1:8080" . to_string ( ) ,
576568 proxy_secret : "test-secret" . to_string ( ) ,
577569 } ;
@@ -581,7 +573,6 @@ mod tests {
581573 let publisher = Publisher {
582574 domain : "example.com" . to_string ( ) ,
583575 cookie_domain : ".example.com" . to_string ( ) ,
584- origin_backend : "publisher_origin" . to_string ( ) ,
585576 origin_url : "http://[::1]:8080" . to_string ( ) ,
586577 proxy_secret : "test-secret" . to_string ( ) ,
587578 } ;
0 commit comments