Skip to content

Commit

Permalink
Update device_id.conf comment
Browse files Browse the repository at this point in the history
  • Loading branch information
inetic committed Jan 31, 2022
1 parent d972a0e commit 434a659
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/device_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,10 @@ const COMMENT: &'static str = "\
#
# However, the user may chose to *move* this file alongside the database. In such case it is
# important to ensure the same device ID is never used by a writer replica concurrently from
# more than one location. Doing so will likely result in data corruption.
# more than one location. Doing so will likely result in data loss.
#
# Device ID is never transmitted over the network and thus can't be used for peer identification.";
# Device ID is never used in construction of network messages and thus can't be used for peer
# identification.";

pub async fn create(path: &Path) -> std::io::Result<DeviceId> {
// TODO: Consider doing this atomically by first writing to a .tmp file and then rename once
Expand Down

0 comments on commit 434a659

Please sign in to comment.