Skip to content

Commit

Permalink
Merge branch 'master' into grpc-server-enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
tiram88 committed Oct 6, 2023
2 parents 54d3317 + 51a1240 commit 99983da
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 8 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,9 @@ jobs:
- name: Install gcc-multilib
# gcc-multilib allows clang to find gnu libraries properly
run: sudo apt install -y gcc-multilib
run: |
sudo apt-get update
sudo apt install -y gcc-multilib
- name: Install stable toolchain
if: steps.install_llvm.outcome == 'success' && steps.install_llvm.conclusion == 'success'
Expand Down Expand Up @@ -290,7 +292,9 @@ jobs:
- name: Install gcc-multilib
# gcc-multilib allows clang to find gnu libraries properly
run: sudo apt install -y gcc-multilib
run: |
sudo apt-get update
sudo apt install -y gcc-multilib
- name: Install stable toolchain
if: steps.install_llvm.outcome == 'success' && steps.install_llvm.conclusion == 'success'
Expand Down
2 changes: 1 addition & 1 deletion crypto/txscript/src/data_stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ fn deserialize_i64(v: &[u8]) -> Result<i64, TxScriptError> {
l if l > size_of::<i64>() => {
Err(TxScriptError::NotMinimalData(format!("numeric value encoded as {v:x?} is longer than 8 bytes")))
}
l if l == 0 => Ok(0),
0 => Ok(0),
_ => {
check_minimal_data_encoding(v)?;
let msb = v[v.len() - 1];
Expand Down
1 change: 1 addition & 0 deletions kos/src/imports.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
pub use crate::core::MetricsCtl;
pub use crate::core::*;
pub use crate::error::Error;
pub use crate::ipc::*;
Expand Down
1 change: 0 additions & 1 deletion rpc/grpc/client/src/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ macro_rules! route {
return __ret;
}
let __self = self;
let request = request;
let __ret: RpcResult<[<$name Response>]> =
{ __self.inner.call(RpcApiOps::$name, request).await?.as_ref().try_into() };
#[allow(unreachable_code)]
Expand Down
6 changes: 3 additions & 3 deletions wallet/core/src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,15 +101,15 @@ where
None
};

let list = if list.is_none() {
let list = if let Some(value) = list {
value
} else {
Value::Object(Map::from_iter(<K as DefaultSettings>::defaults().await.into_iter().map(|(k, v)| {
let ks = to_value(k).unwrap();
let ks = ks.as_str().expect("Unable to convert key to string");

(ks.to_string(), v)
})))
} else {
list.unwrap()
};

self.map.clear();
Expand Down
2 changes: 1 addition & 1 deletion wallet/core/src/utxo/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub struct UtxoProcessor {

impl UtxoProcessor {
pub fn new(rpc: Option<Rpc>, network_id: Option<NetworkId>, multiplexer: Option<Multiplexer<Box<Events>>>) -> Self {
let multiplexer = multiplexer.unwrap_or_else(Multiplexer::new);
let multiplexer = multiplexer.unwrap_or_default();
UtxoProcessor { inner: Arc::new(Inner::new(rpc, network_id, multiplexer)) }
}

Expand Down

0 comments on commit 99983da

Please sign in to comment.