Skip to content

Commit d44c049

Browse files
committed
refactor(default): update Serve function to accept variadic parameters
- Modify Serve function to accept optional variadic parameters - Enhance flexibility for passing arguments to Default.Serve
1 parent 3581780 commit d44c049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

default.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ func Run(fn ...any) {
3434

3535
// Serve starts all daemons and waits for termination signal using the default application instance.
3636
// This function will start all registered daemons and block until a shutdown signal is received.
37-
func Serve() {
38-
Default.Serve()
37+
func Serve(fn ...any) {
38+
Default.Serve(fn...)
3939
}
4040

4141
// End triggers application termination

0 commit comments

Comments
 (0)