Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit 66a5cae

Browse files
committed
updated rpc call to use '_' between namespace and method functions
1 parent 5393f8f commit 66a5cae

File tree

1 file changed

+30
-30
lines changed

1 file changed

+30
-30
lines changed

zinit-client/src/lib.rs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ impl Client {
111111
Client::Ipc(_) => {
112112
let client = self.get_ipc_client().await?;
113113
client
114-
.request("service.list", rpc_params![])
114+
.request("service_list", rpc_params![])
115115
.await
116116
.map_err(Into::into)
117117
}
118118
Client::Http(client) => client
119-
.request("service.list", rpc_params![])
119+
.request("service_list", rpc_params![])
120120
.await
121121
.map_err(Into::into),
122122
}
@@ -129,12 +129,12 @@ impl Client {
129129
Client::Ipc(_) => {
130130
let client = self.get_ipc_client().await?;
131131
client
132-
.request("service.status", rpc_params![name])
132+
.request("service_status", rpc_params![name])
133133
.await
134134
.map_err(Into::into)
135135
}
136136
Client::Http(client) => client
137-
.request("service.status", rpc_params![name])
137+
.request("service_status", rpc_params![name])
138138
.await
139139
.map_err(Into::into),
140140
}
@@ -147,12 +147,12 @@ impl Client {
147147
Client::Ipc(_) => {
148148
let client = self.get_ipc_client().await?;
149149
client
150-
.request("service.start", rpc_params![name])
150+
.request("service_start", rpc_params![name])
151151
.await
152152
.map_err(Into::into)
153153
}
154154
Client::Http(client) => client
155-
.request("service.start", rpc_params![name])
155+
.request("service_start", rpc_params![name])
156156
.await
157157
.map_err(Into::into),
158158
}
@@ -165,12 +165,12 @@ impl Client {
165165
Client::Ipc(_) => {
166166
let client = self.get_ipc_client().await?;
167167
client
168-
.request("service.stop", rpc_params![name])
168+
.request("service_stop", rpc_params![name])
169169
.await
170170
.map_err(Into::into)
171171
}
172172
Client::Http(client) => client
173-
.request("service.stop", rpc_params![name])
173+
.request("service_stop", rpc_params![name])
174174
.await
175175
.map_err(Into::into),
176176
}
@@ -203,12 +203,12 @@ impl Client {
203203
Client::Ipc(_) => {
204204
let client = self.get_ipc_client().await?;
205205
client
206-
.request("service.monitor", rpc_params![name])
206+
.request("service_monitor", rpc_params![name])
207207
.await
208208
.map_err(Into::into)
209209
}
210210
Client::Http(client) => client
211-
.request("service.monitor", rpc_params![name])
211+
.request("service_monitor", rpc_params![name])
212212
.await
213213
.map_err(Into::into),
214214
}
@@ -221,12 +221,12 @@ impl Client {
221221
Client::Ipc(_) => {
222222
let client = self.get_ipc_client().await?;
223223
client
224-
.request("service.forget", rpc_params![name])
224+
.request("service_forget", rpc_params![name])
225225
.await
226226
.map_err(Into::into)
227227
}
228228
Client::Http(client) => client
229-
.request("service.forget", rpc_params![name])
229+
.request("service_forget", rpc_params![name])
230230
.await
231231
.map_err(Into::into),
232232
}
@@ -244,12 +244,12 @@ impl Client {
244244
Client::Ipc(_) => {
245245
let client = self.get_ipc_client().await?;
246246
client
247-
.request("service.kill", rpc_params![name, signal])
247+
.request("service_kill", rpc_params![name, signal])
248248
.await
249249
.map_err(Into::into)
250250
}
251251
Client::Http(client) => client
252-
.request("service.kill", rpc_params![name, signal])
252+
.request("service_kill", rpc_params![name, signal])
253253
.await
254254
.map_err(Into::into),
255255
}
@@ -266,12 +266,12 @@ impl Client {
266266
Client::Ipc(_) => {
267267
let client = self.get_ipc_client().await?;
268268
client
269-
.request("service.create", rpc_params![name, content])
269+
.request("service_create", rpc_params![name, content])
270270
.await
271271
.map_err(Into::into)
272272
}
273273
Client::Http(client) => client
274-
.request("service.create", rpc_params![name, content])
274+
.request("service_create", rpc_params![name, content])
275275
.await
276276
.map_err(Into::into),
277277
}
@@ -284,12 +284,12 @@ impl Client {
284284
Client::Ipc(_) => {
285285
let client = self.get_ipc_client().await?;
286286
client
287-
.request("service.delete", rpc_params![name])
287+
.request("service_delete", rpc_params![name])
288288
.await
289289
.map_err(Into::into)
290290
}
291291
Client::Http(client) => client
292-
.request("service.delete", rpc_params![name])
292+
.request("service_delete", rpc_params![name])
293293
.await
294294
.map_err(Into::into),
295295
}
@@ -302,12 +302,12 @@ impl Client {
302302
Client::Ipc(_) => {
303303
let client = self.get_ipc_client().await?;
304304
client
305-
.request("service.get", rpc_params![name])
305+
.request("service_get", rpc_params![name])
306306
.await
307307
.map_err(Into::into)
308308
}
309309
Client::Http(client) => client
310-
.request("service.get", rpc_params![name])
310+
.request("service_get", rpc_params![name])
311311
.await
312312
.map_err(Into::into),
313313
}
@@ -321,12 +321,12 @@ impl Client {
321321
Client::Ipc(_) => {
322322
let client = self.get_ipc_client().await?;
323323
client
324-
.request("system.shutdown", rpc_params![])
324+
.request("system_shutdown", rpc_params![])
325325
.await
326326
.map_err(Into::into)
327327
}
328328
Client::Http(client) => client
329-
.request("system.shutdown", rpc_params![])
329+
.request("system_shutdown", rpc_params![])
330330
.await
331331
.map_err(Into::into),
332332
}
@@ -338,12 +338,12 @@ impl Client {
338338
Client::Ipc(_) => {
339339
let client = self.get_ipc_client().await?;
340340
client
341-
.request("system.reboot", rpc_params![])
341+
.request("system_reboot", rpc_params![])
342342
.await
343343
.map_err(Into::into)
344344
}
345345
Client::Http(client) => client
346-
.request("system.reboot", rpc_params![])
346+
.request("system_reboot", rpc_params![])
347347
.await
348348
.map_err(Into::into),
349349
}
@@ -356,12 +356,12 @@ impl Client {
356356
Client::Ipc(_) => {
357357
let client = self.get_ipc_client().await?;
358358
client
359-
.request("system.start_http_server", rpc_params![address])
359+
.request("system_start_http_server", rpc_params![address])
360360
.await
361361
.map_err(Into::into)
362362
}
363363
Client::Http(client) => client
364-
.request("system.start_http_server", rpc_params![address])
364+
.request("system_start_http_server", rpc_params![address])
365365
.await
366366
.map_err(Into::into),
367367
}
@@ -373,12 +373,12 @@ impl Client {
373373
Client::Ipc(_) => {
374374
let client = self.get_ipc_client().await?;
375375
client
376-
.request("system.stop_http_server", rpc_params![])
376+
.request("system_stop_http_server", rpc_params![])
377377
.await
378378
.map_err(Into::into)
379379
}
380380
Client::Http(client) => client
381-
.request("system.stop_http_server", rpc_params![])
381+
.request("system_stop_http_server", rpc_params![])
382382
.await
383383
.map_err(Into::into),
384384
}
@@ -392,12 +392,12 @@ impl Client {
392392
Client::Ipc(_) => {
393393
let client = self.get_ipc_client().await?;
394394
client
395-
.request("stream.currentLogs", rpc_params![filter])
395+
.request("stream_currentLogs", rpc_params![filter])
396396
.await
397397
.map_err(Into::into)
398398
}
399399
Client::Http(client) => client
400-
.request("stream.currentLogs", rpc_params![filter])
400+
.request("stream_currentLogs", rpc_params![filter])
401401
.await
402402
.map_err(Into::into),
403403
}

0 commit comments

Comments
 (0)