@@ -17,7 +17,7 @@ use super::datastore::{
1717 traits:: TxData ,
1818} ;
1919use super :: db_metrics:: DB_METRICS ;
20- use crate :: db:: datastore:: system_tables:: { StModuleRow , WASM_MODULE } ;
20+ use crate :: db:: datastore:: system_tables:: StModuleRow ;
2121use crate :: error:: { DBError , DatabaseError , RestoreSnapshotError } ;
2222use crate :: execution_context:: { ReducerContext , Workload , WorkloadType } ;
2323use crate :: messages:: control_db:: HostType ;
@@ -427,9 +427,7 @@ impl RelationalDB {
427427 database_identity : self . database_identity . into ( ) ,
428428 owner_identity : self . owner_identity . into ( ) ,
429429
430- program_kind : match host_type {
431- HostType :: Wasm => WASM_MODULE ,
432- } ,
430+ program_kind : host_type. into ( ) ,
433431 program_hash : program. hash ,
434432 program_bytes : program. bytes ,
435433 module_version : ONLY_MODULE_VERSION . into ( ) ,
@@ -473,10 +471,7 @@ impl RelationalDB {
473471 /// - the `__init__` reducer contained in the module has been executed
474472 /// within the transactional context `tx`.
475473 pub fn update_program ( & self , tx : & mut MutTx , host_type : HostType , program : Program ) -> Result < ( ) , DBError > {
476- let program_kind = match host_type {
477- HostType :: Wasm => WASM_MODULE ,
478- } ;
479- Ok ( self . inner . update_program ( tx, program_kind, program) ?)
474+ Ok ( self . inner . update_program ( tx, host_type. into ( ) , program) ?)
480475 }
481476
482477 fn restore_from_snapshot_or_bootstrap (
0 commit comments