From febe66ec78322600154c4c2c468b1c5b543f47e3 Mon Sep 17 00:00:00 2001 From: Jacob Kaufmann Date: Fri, 11 Aug 2023 22:38:31 -0600 Subject: [PATCH] fix: do not include bundles in empty payload (#40) --- src/builder.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/builder.rs b/src/builder.rs index 7c315b0..2d9add5 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -287,7 +287,7 @@ where let empty = build( self.config.clone(), Arc::clone(&self.client), - self.bundles.clone().into_iter(), + None.into_iter(), )?; Ok(empty.inner) } @@ -300,9 +300,8 @@ where let (tx, rx) = oneshot::channel(); let config = self.config.clone(); let client = Arc::clone(&self.client); - let bundles = self.bundles.clone().into_iter(); task::spawn_blocking(move || { - let payload = build(config, client, bundles); + let payload = build(config, client, None.into_iter()); let _ = tx.send(payload); });