Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
inetic committed Jul 23, 2024
1 parent ce8f808 commit 0b9b14d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class OuisyncSession {
}

public static func create(_ configPath: String, _ logPath: String, _ ffi: OuisyncFFI) throws -> OuisyncSession {
// Init with an invalid sessionHandle because we need the OuisyncSession instance to
// create the callback, which is in turn needed to create the proper sessionHandle.
let session = OuisyncSession(0, ffi)

let callback: FFICallback = { context, dataPointer, size in
Expand Down
2 changes: 1 addition & 1 deletion cli/src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ pub(crate) enum Request {
/// Repository token
#[arg(short, long)]
token: String,
}
},
}

#[derive(Clone, Copy, Debug, Serialize, Deserialize, ValueEnum)]
Expand Down

0 comments on commit 0b9b14d

Please sign in to comment.