@@ -129,45 +129,31 @@ impl Agent {
129
129
let state = Arc :: new ( state:: State :: new ( self . config . state . clone ( ) ) . await ) ;
130
130
131
131
// Spawn the primary network Oracle.
132
- {
133
- // Publisher permissions updates between oracle and exporter
134
- let ( publisher_permissions_tx, publisher_permissions_rx) =
135
- watch:: channel ( <_ >:: default ( ) ) ;
136
-
137
- jhs. push ( tokio:: spawn ( services:: oracle (
138
- self . config . primary_network . clone ( ) ,
139
- network:: Network :: Primary ,
140
- state. clone ( ) ,
141
- publisher_permissions_tx. clone ( ) ,
142
- ) ) ) ;
132
+ jhs. push ( tokio:: spawn ( services:: oracle (
133
+ self . config . primary_network . clone ( ) ,
134
+ network:: Network :: Primary ,
135
+ state. clone ( ) ,
136
+ ) ) ) ;
143
137
144
- // Spawn the primary network
145
- jhs. extend ( network:: spawn_network (
146
- self . config . primary_network . clone ( ) ,
147
- network:: Network :: Primary ,
148
- state. clone ( ) ,
149
- publisher_permissions_rx. clone ( ) ,
150
- ) ?) ;
151
- }
138
+ jhs. push ( tokio:: spawn ( services:: exporter (
139
+ self . config . primary_network . clone ( ) ,
140
+ network:: Network :: Primary ,
141
+ state. clone ( ) ,
142
+ ) ) ) ;
152
143
153
144
// Spawn the secondary network Oracle, if needed.
154
145
if let Some ( config) = & self . config . secondary_network {
155
- let ( publisher_permissions_tx, publisher_permissions_rx) =
156
- watch:: channel ( <_ >:: default ( ) ) ;
157
-
158
146
jhs. push ( tokio:: spawn ( services:: oracle (
159
147
config. clone ( ) ,
160
148
network:: Network :: Secondary ,
161
149
state. clone ( ) ,
162
- publisher_permissions_tx. clone ( ) ,
163
150
) ) ) ;
164
151
165
- jhs. extend ( network :: spawn_network (
152
+ jhs. push ( tokio :: spawn ( services :: exporter (
166
153
config. clone ( ) ,
167
154
network:: Network :: Secondary ,
168
155
state. clone ( ) ,
169
- publisher_permissions_rx,
170
- ) ?) ;
156
+ ) ) ) ;
171
157
}
172
158
173
159
// Create the Notifier task for the Pythd RPC.
0 commit comments