Skip to content

Commit 85fa35a

Browse files
committed
refactor(agent): remove pythd module, raise pyth module
1 parent 87a38be commit 85fa35a

File tree

12 files changed

+42
-43
lines changed

12 files changed

+42
-43
lines changed

src/agent.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Note that there is an Oracle and Exporter for each network, but only one Local S
6464
use {
6565
self::{
6666
config::Config,
67-
pythd::api::rpc,
67+
pyth::rpc,
6868
solana::network,
6969
state::notifier,
7070
},
@@ -79,7 +79,7 @@ use {
7979
pub mod legacy_schedule;
8080
pub mod market_schedule;
8181
pub mod metrics;
82-
pub mod pythd;
82+
pub mod pyth;
8383
pub mod solana;
8484
pub mod state;
8585
pub mod store;
@@ -187,7 +187,7 @@ pub mod config {
187187
use {
188188
super::{
189189
metrics,
190-
pythd,
190+
pyth,
191191
solana::network,
192192
state,
193193
},
@@ -212,7 +212,7 @@ pub mod config {
212212
#[serde(rename = "pythd_adapter")]
213213
pub state: state::Config,
214214
#[serde(default)]
215-
pub pythd_api_server: pythd::api::rpc::Config,
215+
pub pythd_api_server: pyth::rpc::Config,
216216
#[serde(default)]
217217
pub metrics_server: metrics::Config,
218218
#[serde(default)]

src/agent/pythd/api.rs renamed to src/agent/pyth.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ use {
66
std::collections::BTreeMap,
77
};
88

9+
pub mod rpc;
10+
911
pub type Pubkey = String;
1012
pub type Attrs = BTreeMap<String, String>;
1113

@@ -83,5 +85,3 @@ pub struct PriceUpdate {
8385
pub valid_slot: Slot,
8486
pub pub_slot: Slot,
8587
}
86-
87-
pub mod rpc;
File renamed without changes.

src/agent/pythd.rs

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)