@@ -18,11 +18,11 @@ use grpc::{
1818 context:: Context ,
1919 operations:: {
2020 volume:: traits:: {
21- CreateVolumeInfo , CreateVolumeSnapshot , CreateVolumeSnapshotInfo , DeleteVolumeSnapshot ,
22- DeleteVolumeSnapshotInfo , DestroyShutdownTargetsInfo , DestroyVolumeInfo ,
23- PublishVolumeInfo , RepublishVolumeInfo , SetVolumeReplicaInfo , ShareVolumeInfo ,
24- UnpublishVolumeInfo , UnshareVolumeInfo , VolumeOperations , VolumeSnapshot ,
25- VolumeSnapshots ,
21+ CreateVolumeInfo , CreateVolumeSnapshot , CreateVolumeSnapshotInfo ,
22+ DestroyShutdownTargetsInfo , DestroyVolumeInfo , DestroyVolumeSnapshot ,
23+ DestroyVolumeSnapshotInfo , PublishVolumeInfo , RepublishVolumeInfo ,
24+ SetVolumeReplicaInfo , ShareVolumeInfo , UnpublishVolumeInfo , UnshareVolumeInfo ,
25+ VolumeOperations , VolumeSnapshot , VolumeSnapshots ,
2626 } ,
2727 Pagination ,
2828 } ,
@@ -184,14 +184,14 @@ impl VolumeOperations for Service {
184184 Ok ( snapshot)
185185 }
186186
187- async fn delete_snapshot (
187+ async fn destroy_snapshot (
188188 & self ,
189- request : & dyn DeleteVolumeSnapshotInfo ,
189+ request : & dyn DestroyVolumeSnapshotInfo ,
190190 _ctx : Option < Context > ,
191191 ) -> Result < ( ) , ReplyError > {
192192 let service = self . clone ( ) ;
193193 let request = request. info ( ) ;
194- Context :: spawn ( async move { service. delete_snapshot ( request) . await } ) . await ??;
194+ Context :: spawn ( async move { service. destroy_snapshot ( request) . await } ) . await ??;
195195 Ok ( ( ) )
196196 }
197197
@@ -388,7 +388,7 @@ impl Service {
388388
389389 /// Delete a volume snapshot.
390390 #[ tracing:: instrument( level = "info" , skip( self ) , err, fields( volume. uuid = ?request. source_id, snapshot. source_uuid = ?request. source_id, snapshot. uuid = %request. snap_id) ) ]
391- async fn delete_snapshot ( & self , request : DeleteVolumeSnapshot ) -> Result < ( ) , SvcError > {
391+ async fn destroy_snapshot ( & self , request : DestroyVolumeSnapshot ) -> Result < ( ) , SvcError > {
392392 // Fetch the snapshot spec.
393393 let snapshot = self . specs ( ) . volume_snapshot_rsc ( request. snap_id ( ) ) . ok_or (
394394 SvcError :: VolSnapshotNotFound {
0 commit comments