Skip to content

Commit 32e2af0

Browse files
Merge pull request #119 from glyphpoch/fix_request_start_shutdown_funcs
Fix request_(startup|shutdown)_function in ModuleBuilder
2 parents 08de883 + cbc802f commit 32e2af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builders/module.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ impl ModuleBuilder {
111111
///
112112
/// * `func` - The function to be called when startup is requested.
113113
pub fn request_startup_function(mut self, func: StartupShutdownFunc) -> Self {
114-
self.module.module_startup_func = Some(func);
114+
self.module.request_startup_func = Some(func);
115115
self
116116
}
117117

@@ -121,7 +121,7 @@ impl ModuleBuilder {
121121
///
122122
/// * `func` - The function to be called when shutdown is requested.
123123
pub fn request_shutdown_function(mut self, func: StartupShutdownFunc) -> Self {
124-
self.module.module_shutdown_func = Some(func);
124+
self.module.request_shutdown_func = Some(func);
125125
self
126126
}
127127

0 commit comments

Comments
 (0)