@@ -21,7 +21,6 @@ pub struct AdServer {
2121pub struct Publisher {
2222 pub domain : String ,
2323 pub cookie_domain : String ,
24- pub origin_backend : String ,
2524 pub origin_url : String ,
2625 /// Secret used to encrypt/decrypt proxied URLs in `/first-party/proxy`.
2726 /// Keep this secret stable to allow existing links to decode.
@@ -38,7 +37,6 @@ impl Publisher {
3837 /// let publisher = Publisher {
3938 /// domain: "example.com".to_string(),
4039 /// cookie_domain: ".example.com".to_string(),
41- /// origin_backend: "edgepubs_main_be".to_string(),
4240 /// origin_url: "https://origin.example.com:8080".to_string(),
4341 /// proxy_secret: "proxy-secret".to_string(),
4442 /// };
@@ -530,7 +528,6 @@ mod tests {
530528 let publisher = Publisher {
531529 domain : "example.com" . to_string ( ) ,
532530 cookie_domain : ".example.com" . to_string ( ) ,
533- origin_backend : "publisher_origin" . to_string ( ) ,
534531 origin_url : "https://origin.example.com:8080" . to_string ( ) ,
535532 proxy_secret : "test-secret" . to_string ( ) ,
536533 } ;
@@ -540,7 +537,6 @@ mod tests {
540537 let publisher = Publisher {
541538 domain : "example.com" . to_string ( ) ,
542539 cookie_domain : ".example.com" . to_string ( ) ,
543- origin_backend : "publisher_origin" . to_string ( ) ,
544540 origin_url : "https://origin.example.com" . to_string ( ) ,
545541 proxy_secret : "test-secret" . to_string ( ) ,
546542 } ;
@@ -550,7 +546,6 @@ mod tests {
550546 let publisher = Publisher {
551547 domain : "example.com" . to_string ( ) ,
552548 cookie_domain : ".example.com" . to_string ( ) ,
553- origin_backend : "publisher_origin" . to_string ( ) ,
554549 origin_url : "http://localhost:9090" . to_string ( ) ,
555550 proxy_secret : "test-secret" . to_string ( ) ,
556551 } ;
@@ -560,7 +555,6 @@ mod tests {
560555 let publisher = Publisher {
561556 domain : "example.com" . to_string ( ) ,
562557 cookie_domain : ".example.com" . to_string ( ) ,
563- origin_backend : "publisher_origin" . to_string ( ) ,
564558 origin_url : "localhost:9090" . to_string ( ) ,
565559 proxy_secret : "test-secret" . to_string ( ) ,
566560 } ;
@@ -570,7 +564,6 @@ mod tests {
570564 let publisher = Publisher {
571565 domain : "example.com" . to_string ( ) ,
572566 cookie_domain : ".example.com" . to_string ( ) ,
573- origin_backend : "publisher_origin" . to_string ( ) ,
574567 origin_url : "http://192.168.1.1:8080" . to_string ( ) ,
575568 proxy_secret : "test-secret" . to_string ( ) ,
576569 } ;
@@ -580,7 +573,6 @@ mod tests {
580573 let publisher = Publisher {
581574 domain : "example.com" . to_string ( ) ,
582575 cookie_domain : ".example.com" . to_string ( ) ,
583- origin_backend : "publisher_origin" . to_string ( ) ,
584576 origin_url : "http://[::1]:8080" . to_string ( ) ,
585577 proxy_secret : "test-secret" . to_string ( ) ,
586578 } ;
0 commit comments