Skip to content

slot resub #71

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/drift-ffi-sys
6 changes: 2 additions & 4 deletions crates/src/drift_idl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#![doc = r""]
#![doc = r" Auto-generated IDL types, manual edits do not persist (see `crates/drift-idl-gen`)"]
#![doc = r""]
use self::traits::ToAccountMetas;
use anchor_lang::{
prelude::{
account,
Expand All @@ -12,8 +13,6 @@ use anchor_lang::{
};
use serde::{Deserialize, Serialize};
use solana_sdk::{instruction::AccountMeta, pubkey::Pubkey};

use self::traits::ToAccountMetas;
pub mod traits {
use solana_sdk::instruction::AccountMeta;
#[doc = r" This is distinct from the anchor_lang version of the trait"]
Expand Down Expand Up @@ -1891,9 +1890,8 @@ pub mod instructions {
}
pub mod types {
#![doc = r" IDL types"]
use std::ops::Mul;

use super::*;
use std::ops::Mul;
#[doc = ""]
#[doc = " backwards compatible u128 deserializing data from rust <=1.76.0 when u/i128 was 8-byte aligned"]
#[doc = " https://solana.stackexchange.com/questions/7720/using-u128-without-sacrificing-alignment-8"]
Expand Down
4 changes: 2 additions & 2 deletions crates/src/slot_subscriber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl SlotSubscriber {
*slot_guard
}

pub async fn subscribe<F>(&mut self, handler_fn: F) -> SdkResult<()>
pub async fn subscribe<F>(&self, handler_fn: F) -> SdkResult<()>
where
F: 'static + Send + Fn(SlotUpdate),
{
Expand All @@ -57,7 +57,7 @@ impl SlotSubscriber {
Ok(())
}

async fn subscribe_ws<F>(&mut self, handler_fn: F) -> SdkResult<()>
async fn subscribe_ws<F>(&self, handler_fn: F) -> SdkResult<()>
where
F: 'static + Send + Fn(SlotUpdate),
{
Expand Down