@@ -78,12 +78,6 @@ func (s *arduinoCoreServerImpl) UpdateLibrariesIndex(req *rpc.UpdateLibrariesInd
7878 return err
7979}
8080
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-
8781// Version FIXMEDOC
8882func (s * arduinoCoreServerImpl ) Version (ctx context.Context , req * rpc.VersionRequest ) (* rpc.VersionResponse , error ) {
8983 return & rpc.VersionResponse {Version : s .versionString }, nil
@@ -144,7 +138,7 @@ func (s *arduinoCoreServerImpl) Compile(req *rpc.CompileRequest, stream rpc.Ardu
144138func (s * arduinoCoreServerImpl ) PlatformInstall (req * rpc.PlatformInstallRequest , stream rpc.ArduinoCoreService_PlatformInstallServer ) error {
145139 syncSend := NewSynchronizedSend (stream .Send )
146140 resp , err := PlatformInstall (
147- stream .Context (), req ,
141+ stream .Context (), s , req ,
148142 func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.PlatformInstallResponse {Progress : p }) },
149143 func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.PlatformInstallResponse {TaskProgress : p }) },
150144 )
@@ -171,7 +165,7 @@ func (s *arduinoCoreServerImpl) PlatformDownload(req *rpc.PlatformDownloadReques
171165func (s * arduinoCoreServerImpl ) PlatformUninstall (req * rpc.PlatformUninstallRequest , stream rpc.ArduinoCoreService_PlatformUninstallServer ) error {
172166 syncSend := NewSynchronizedSend (stream .Send )
173167 resp , err := PlatformUninstall (
174- stream .Context (), req ,
168+ stream .Context (), s , req ,
175169 func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.PlatformUninstallResponse {TaskProgress : p }) },
176170 )
177171 if err != nil {
@@ -184,7 +178,7 @@ func (s *arduinoCoreServerImpl) PlatformUninstall(req *rpc.PlatformUninstallRequ
184178func (s * arduinoCoreServerImpl ) PlatformUpgrade (req * rpc.PlatformUpgradeRequest , stream rpc.ArduinoCoreService_PlatformUpgradeServer ) error {
185179 syncSend := NewSynchronizedSend (stream .Send )
186180 resp , err := PlatformUpgrade (
187- stream .Context (), req ,
181+ stream .Context (), s , req ,
188182 func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.PlatformUpgradeResponse {Progress : p }) },
189183 func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.PlatformUpgradeResponse {TaskProgress : p }) },
190184 )
@@ -304,7 +298,7 @@ func (s *arduinoCoreServerImpl) LibraryDownload(req *rpc.LibraryDownloadRequest,
304298func (s * arduinoCoreServerImpl ) LibraryInstall (req * rpc.LibraryInstallRequest , stream rpc.ArduinoCoreService_LibraryInstallServer ) error {
305299 syncSend := NewSynchronizedSend (stream .Send )
306300 return LibraryInstall (
307- stream .Context (), req ,
301+ stream .Context (), s , req ,
308302 func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.LibraryInstallResponse {Progress : p }) },
309303 func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.LibraryInstallResponse {TaskProgress : p }) },
310304 )
@@ -314,7 +308,7 @@ func (s *arduinoCoreServerImpl) LibraryInstall(req *rpc.LibraryInstallRequest, s
314308func (s * arduinoCoreServerImpl ) LibraryUpgrade (req * rpc.LibraryUpgradeRequest , stream rpc.ArduinoCoreService_LibraryUpgradeServer ) error {
315309 syncSend := NewSynchronizedSend (stream .Send )
316310 return LibraryUpgrade (
317- stream .Context (), req ,
311+ stream .Context (), s , req ,
318312 func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.LibraryUpgradeResponse {Progress : p }) },
319313 func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.LibraryUpgradeResponse {TaskProgress : p }) },
320314 )
@@ -331,7 +325,7 @@ func (s *arduinoCoreServerImpl) LibraryUninstall(req *rpc.LibraryUninstallReques
331325// LibraryUpgradeAll FIXMEDOC
332326func (s * arduinoCoreServerImpl ) LibraryUpgradeAll (req * rpc.LibraryUpgradeAllRequest , stream rpc.ArduinoCoreService_LibraryUpgradeAllServer ) error {
333327 syncSend := NewSynchronizedSend (stream .Send )
334- return LibraryUpgradeAll (req ,
328+ return LibraryUpgradeAll (s , req ,
335329 func (p * rpc.DownloadProgress ) { syncSend .Send (& rpc.LibraryUpgradeAllResponse {Progress : p }) },
336330 func (p * rpc.TaskProgress ) { syncSend .Send (& rpc.LibraryUpgradeAllResponse {TaskProgress : p }) },
337331 )
0 commit comments