@@ -278,7 +278,6 @@ func registerBackupCmd(rootCmd *cobra.Command) {
278278 backupformat .RegisterRewriterFlags (backupParseRelsCmd )
279279}
280280
281-
282281func registerBackupRestoreFlags (cmd * cobra.Command ) {
283282 cmd .Flags ().Uint ("batch-size" , 1_000 , "restore relationship write batch size" )
284283 cmd .Flags ().Uint ("batches-per-transaction" , 10 , "number of batches per transaction" )
@@ -460,7 +459,6 @@ func backupCreateCmdFunc(cmd *cobra.Command, args []string) (err error) {
460459 return err
461460}
462461
463-
464462// backupCreateImpl performs the core backup logic. It is designed to be testable
465463// by accepting dependencies as parameters rather than creating them internally.
466464func backupCreateImpl (
@@ -519,7 +517,6 @@ func backupCreateImpl(
519517 return true , nil
520518}
521519
522-
523520func takeBackup (ctx context.Context , spiceClient client.Client , req * v1.ExportBulkRelationshipsRequest , processResponse func (* v1.ExportBulkRelationshipsResponse ) error ) error {
524521 relationshipStream , err := spiceClient .ExportBulkRelationships (ctx , req )
525522 if err != nil {
@@ -571,7 +568,6 @@ func takeBackup(ctx context.Context, spiceClient client.Client, req *v1.ExportBu
571568 return nil
572569}
573570
574-
575571// writeSchemaForNewBackup reads the schema from SpiceDB and writes it to the encoder.
576572// It returns the ZedToken at which the backup must be taken.
577573func writeSchemaForNewBackup (ctx context.Context , c client.Client , encoder backupformat.Encoder , config BackupConfig ) (* v1.ZedToken , error ) {
@@ -607,7 +603,6 @@ func writeSchemaForNewBackup(ctx context.Context, c client.Client, encoder backu
607603 return zedToken , nil
608604}
609605
610-
611606func toLockFileName (backupFileName string ) string {
612607 return backupFileName + ".lock"
613608}
0 commit comments