Skip to content

Commit 56a7962

Browse files
committed
chore: fix tests and deploy workflow
1 parent a0d3447 commit 56a7962

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Statefile.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ ApiVersion: v0.16
22

33
Namespace: ntex
44

5+
Args:
6+
- Name: version
7+
Kind: String
8+
59
Cargoes:
610
- Name: doc
711
ImagePullPolicy: Always
812
ImagePullSecret: registry.ghcr.io
913
Container:
10-
Image: ghcr.io/ntex-rs/website:2.0.3
14+
Image: ghcr.io/ntex-rs/website:${{ Args.version }}
1115

1216
Resources:
1317
- Name: http.ntex.rs

examples/databases/src/main.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,10 @@ async fn index(
8484
name: web::types::Path<(String,)>,
8585
) -> Result<impl web::Responder, web::Error> {
8686
let (name,) = name.into_inner();
87+
let pool = pool.get_ref().clone();
8788

88-
let mut conn = pool.get().expect("couldn't get db connection from pool");
8989
let user = web::block(move || {
90+
let mut conn = pool.get().expect("couldn't get db connection from pool");
9091
// Obtaining a connection from the pool is also a potentially blocking operation.
9192
// So, it should be called within the `web::block` closure, as well.
9293
insert_new_user(&mut conn, name)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ntex-website",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"private": true,
55
"scripts": {
66
"docusaurus": "docusaurus",

0 commit comments

Comments
 (0)