Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix(daemon): remove keys threw error on success
Browse files Browse the repository at this point in the history
  • Loading branch information
juligasa committed Jun 26, 2024
1 parent e41f1b9 commit 3829ddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/daemon/api/daemon/v1alpha/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (srv *Server) RegisterKey(ctx context.Context, req *daemon.RegisterKeyReque

// DeleteKey implement the corresponding gRPC method.
func (srv *Server) DeleteKey(ctx context.Context, req *daemon.DeleteKeyRequest) (*emptypb.Empty, error) {
return nil, srv.store.KeyStore().DeleteKey(ctx, req.Name)
return &emptypb.Empty{}, srv.store.KeyStore().DeleteKey(ctx, req.Name)
}

// ListKeys implement the corresponding gRPC method.
Expand Down Expand Up @@ -199,7 +199,7 @@ func (srv *Server) ForceSync(context.Context, *daemon.ForceSyncRequest) (*emptyp
}

if err := srv.forceSyncFunc(); err != nil {
return nil, err
return &emptypb.Empty{}, err
}

return &emptypb.Empty{}, nil
Expand Down

0 comments on commit 3829ddc

Please sign in to comment.