From c55549a16ac4b104c2eb8b812ad3617462b81bdd Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 11 May 2021 11:10:35 +0300 Subject: [PATCH] ci: fix `v build-examples` --- examples/vweb/file_upload/vweb_example.v | 2 +- examples/vweb/server_sent_events/server.v | 2 +- examples/vweb/vweb_assets/vweb_assets.v | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/vweb/file_upload/vweb_example.v b/examples/vweb/file_upload/vweb_example.v index c2289d25eb..bde55c321b 100644 --- a/examples/vweb/file_upload/vweb_example.v +++ b/examples/vweb/file_upload/vweb_example.v @@ -11,7 +11,7 @@ struct App { } fn main() { - vweb.run(port) + vweb.run(&App{}, port) } pub fn (mut app App) index() vweb.Result { diff --git a/examples/vweb/server_sent_events/server.v b/examples/vweb/server_sent_events/server.v index 0cbba51370..4d0c4b43a4 100644 --- a/examples/vweb/server_sent_events/server.v +++ b/examples/vweb/server_sent_events/server.v @@ -11,7 +11,7 @@ struct App { } fn main() { - vweb.run(8081) + vweb.run(&App{}, 8081) } pub fn (mut app App) init_server() { diff --git a/examples/vweb/vweb_assets/vweb_assets.v b/examples/vweb/vweb_assets/vweb_assets.v index 03babaa634..714b1486a8 100644 --- a/examples/vweb/vweb_assets/vweb_assets.v +++ b/examples/vweb/vweb_assets/vweb_assets.v @@ -13,7 +13,7 @@ struct App { } fn main() { - vweb.run(port) + vweb.run(&App{}, port) } pub fn (mut app App) init_server() {