Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shengtong Zhang committed Jun 29, 2022
1 parent 6d2dcd4 commit 8120b25
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions daemon/rpc/daemon_rpc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ Status DaemonRpc::GetFriendList(
new_friend->set_unique_name(std::string(s.unique_name));
new_friend->set_display_name(std::string(s.display_name));
new_friend->set_public_id(std::string(s.public_id));
new_friend->set_request_progress(
asphrdaemon::FriendRequestProgress::Complete);
new_friend->set_invitation_progress(
asphrdaemon::InvitationProgress::Complete);
}
} catch (const rust::Error& e) {
ASPHR_LOG_ERR("Database failed.", error, e.what(), rpc_call,
Expand Down Expand Up @@ -241,9 +241,8 @@ auto DaemonRpc::convertStructDBtoRPC(const db::Friend& db_friend,
// WARNING: this is SkEtCHy!!
// TODO(sualeh): can we cast this with a proper function on either of the
// structs.
friend_info.set_request_progress(
static_cast<asphrdaemon::FriendRequestProgress>(
db_friend.request_progress));
friend_info.set_invitation_progress(
static_cast<asphrdaemon::InvitationProgress>(db_friend.request_progress));
return std::pair(friend_info, std::string(db_address.friend_request_message));
}

Expand Down

0 comments on commit 8120b25

Please sign in to comment.