Skip to content

Commit 15c0871

Browse files
committed
publish: fix rebase fallout for host_type
1 parent 5898e02 commit 15c0871

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/cli/src/subcommands/publish.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ pub async fn exec(mut config: Config, args: &ArgMatches) -> Result<(), anyhow::E
134134
};
135135
let program_bytes = fs::read(path_to_program)?;
136136

137-
// The host type is not the default (WASM).
138-
if let Some(host_type) = host_type {
139-
builder = builder.query(&[("host_type", host_type)]);
140-
}
141-
142137
let server_address = {
143138
let url = Url::parse(&database_host)?;
144139
url.host_str().unwrap_or("<default>").to_string()
@@ -210,6 +205,11 @@ pub async fn exec(mut config: Config, args: &ArgMatches) -> Result<(), anyhow::E
210205
builder = builder.query(&[("num_replicas", *n)]);
211206
}
212207

208+
// The host type is not the default (WASM).
209+
if let Some(host_type) = host_type {
210+
builder = builder.query(&[("host_type", host_type)]);
211+
}
212+
213213
println!("Publishing module...");
214214

215215
builder = add_auth_header_opt(builder, &auth_header);

0 commit comments

Comments
 (0)