File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Check Generated Protos
2+
3+ on :
4+ push :
5+ paths :
6+ - ' ldk-server-protos/**'
7+ pull_request :
8+ paths :
9+ - ' ldk-server-protos/**'
10+ workflow_dispatch :
11+
12+ jobs :
13+ check-protos :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout source code
17+ uses : actions/checkout@v3
18+ - name : Install Rust stable toolchain
19+ run : |
20+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=minimal --default-toolchain stable
21+ - name : Install protoc
22+ run : sudo apt-get install -y protobuf-compiler
23+ - name : Generate protos
24+ run : RUSTFLAGS="--cfg genproto" cargo build -p ldk-server-protos
25+ - name : Format generated code
26+ run : rustup component add rustfmt && cargo fmt --all
27+ - name : Check for differences
28+ run : |
29+ if ! git diff --exit-code; then
30+ echo "error: Generated protobuf files are out of date. Run: RUSTFLAGS=\"--cfg genproto\" cargo build -p ldk-server-protos && cargo fmt --all"
31+ exit 1
32+ fi
Original file line number Diff line number Diff line change @@ -1101,7 +1101,6 @@ impl PaymentStatus {
11011101 }
11021102 }
11031103}
1104-
11051104/// Indicates whether the balance is derived from a cooperative close, a force-close (for holder or counterparty),
11061105/// or whether it is for an HTLC.
11071106#[ cfg_attr( feature = "serde" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
@@ -1118,7 +1117,6 @@ pub enum BalanceSource {
11181117 /// This balance is the result of an HTLC.
11191118 Htlc = 3 ,
11201119}
1121-
11221120impl BalanceSource {
11231121 /// String value of the enum field names used in the ProtoBuf definition.
11241122 ///
You can’t perform that action at this time.
0 commit comments