File tree 2 files changed +25
-7
lines changed
2 files changed +25
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ pull_request :
5
+ schedule : [ cron: "40 1 * * *" ]
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ env :
11
+ RUSTFLAGS : -Dwarnings
12
+
13
+ jobs :
14
+ test :
15
+ runs-on : ubuntu-latest
16
+ timeout-minutes : 45
17
+ steps :
18
+ - uses : actions/checkout@v4
19
+ - uses : dtolnay/rust-toolchain@stable
20
+ - uses : Swatinem/rust-cache@v2
21
+ - run : cargo fmt -- --check
22
+ - run : cargo build
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ impl LambdaInvoker {
23
23
}
24
24
}
25
25
26
- pub async fn iterate ( & self , iterations : u8 ) -> Result < ( ) , anyhow:: Error > {
26
+ pub async fn iterate ( & self , iterations : u16 ) -> Result < ( ) , anyhow:: Error > {
27
27
let config = self . get_function_configuration ( ) . await ?;
28
28
let mut env = config
29
29
. environment
@@ -110,12 +110,8 @@ impl LambdaInvoker {
110
110
Some ( last_update_status) => {
111
111
info ! ( "Checking if last update is successful: {last_update_status}" ) ;
112
112
match last_update_status {
113
- LastUpdateStatus :: Successful => {
114
- Ok ( true )
115
- }
116
- LastUpdateStatus :: Failed | LastUpdateStatus :: InProgress => {
117
- Ok ( false )
118
- }
113
+ LastUpdateStatus :: Successful => Ok ( true ) ,
114
+ LastUpdateStatus :: Failed | LastUpdateStatus :: InProgress => Ok ( false ) ,
119
115
unknown => {
120
116
warn ! ( "LastUpdateStatus unknown: {unknown}" ) ;
121
117
Err ( anyhow ! ( "Unknown LastUpdateStatus, fn config is {config:?}" ) )
You can’t perform that action at this time.
0 commit comments