@@ -78,12 +78,6 @@ func (s *arduinoCoreServerImpl) UpdateLibrariesIndex(req *rpc.UpdateLibrariesInd
78
78
return err
79
79
}
80
80
81
- // Init FIXMEDOC
82
- func (s * arduinoCoreServerImpl ) Init (req * rpc.InitRequest , stream rpc.ArduinoCoreService_InitServer ) error {
83
- syncSend := NewSynchronizedSend (stream .Send )
84
- return Init (req , func (message * rpc.InitResponse ) { syncSend .Send (message ) })
85
- }
86
-
87
81
// Version FIXMEDOC
88
82
func (s * arduinoCoreServerImpl ) Version (ctx context.Context , req * rpc.VersionRequest ) (* rpc.VersionResponse , error ) {
89
83
return & rpc.VersionResponse {Version : s .versionString }, nil
@@ -144,7 +138,7 @@ func (s *arduinoCoreServerImpl) Compile(req *rpc.CompileRequest, stream rpc.Ardu
144
138
func (s * arduinoCoreServerImpl ) PlatformInstall (req * rpc.PlatformInstallRequest , stream rpc.ArduinoCoreService_PlatformInstallServer ) error {
145
139
syncSend := NewSynchronizedSend (stream .Send )
146
140
resp , err := PlatformInstall (
147
- stream .Context (), req ,
141
+ stream .Context (), s , req ,
148
142
func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.PlatformInstallResponse {Progress : p }) },
149
143
func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.PlatformInstallResponse {TaskProgress : p }) },
150
144
)
@@ -171,7 +165,7 @@ func (s *arduinoCoreServerImpl) PlatformDownload(req *rpc.PlatformDownloadReques
171
165
func (s * arduinoCoreServerImpl ) PlatformUninstall (req * rpc.PlatformUninstallRequest , stream rpc.ArduinoCoreService_PlatformUninstallServer ) error {
172
166
syncSend := NewSynchronizedSend (stream .Send )
173
167
resp , err := PlatformUninstall (
174
- stream .Context (), req ,
168
+ stream .Context (), s , req ,
175
169
func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.PlatformUninstallResponse {TaskProgress : p }) },
176
170
)
177
171
if err != nil {
@@ -184,7 +178,7 @@ func (s *arduinoCoreServerImpl) PlatformUninstall(req *rpc.PlatformUninstallRequ
184
178
func (s * arduinoCoreServerImpl ) PlatformUpgrade (req * rpc.PlatformUpgradeRequest , stream rpc.ArduinoCoreService_PlatformUpgradeServer ) error {
185
179
syncSend := NewSynchronizedSend (stream .Send )
186
180
resp , err := PlatformUpgrade (
187
- stream .Context (), req ,
181
+ stream .Context (), s , req ,
188
182
func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.PlatformUpgradeResponse {Progress : p }) },
189
183
func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.PlatformUpgradeResponse {TaskProgress : p }) },
190
184
)
@@ -304,7 +298,7 @@ func (s *arduinoCoreServerImpl) LibraryDownload(req *rpc.LibraryDownloadRequest,
304
298
func (s * arduinoCoreServerImpl ) LibraryInstall (req * rpc.LibraryInstallRequest , stream rpc.ArduinoCoreService_LibraryInstallServer ) error {
305
299
syncSend := NewSynchronizedSend (stream .Send )
306
300
return LibraryInstall (
307
- stream .Context (), req ,
301
+ stream .Context (), s , req ,
308
302
func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.LibraryInstallResponse {Progress : p }) },
309
303
func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.LibraryInstallResponse {TaskProgress : p }) },
310
304
)
@@ -314,7 +308,7 @@ func (s *arduinoCoreServerImpl) LibraryInstall(req *rpc.LibraryInstallRequest, s
314
308
func (s * arduinoCoreServerImpl ) LibraryUpgrade (req * rpc.LibraryUpgradeRequest , stream rpc.ArduinoCoreService_LibraryUpgradeServer ) error {
315
309
syncSend := NewSynchronizedSend (stream .Send )
316
310
return LibraryUpgrade (
317
- stream .Context (), req ,
311
+ stream .Context (), s , req ,
318
312
func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.LibraryUpgradeResponse {Progress : p }) },
319
313
func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.LibraryUpgradeResponse {TaskProgress : p }) },
320
314
)
@@ -331,7 +325,7 @@ func (s *arduinoCoreServerImpl) LibraryUninstall(req *rpc.LibraryUninstallReques
331
325
// LibraryUpgradeAll FIXMEDOC
332
326
func (s * arduinoCoreServerImpl ) LibraryUpgradeAll (req * rpc.LibraryUpgradeAllRequest , stream rpc.ArduinoCoreService_LibraryUpgradeAllServer ) error {
333
327
syncSend := NewSynchronizedSend (stream .Send )
334
- return LibraryUpgradeAll (req ,
328
+ return LibraryUpgradeAll (s , req ,
335
329
func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.LibraryUpgradeAllResponse {Progress : p }) },
336
330
func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.LibraryUpgradeAllResponse {TaskProgress : p }) },
337
331
)
0 commit comments