mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-06 10:39:57 +02:00
Make API version selection possible, update for newer ffsend-api version
This commit is contained in:
parent
f53f11a9f1
commit
ca122cad66
15 changed files with 407 additions and 20 deletions
|
@ -1,6 +1,14 @@
|
|||
use ffsend_api::api::{DesiredVersion, Version};
|
||||
|
||||
/// The timeout for the Send client for generic requests, `0` to disable.
|
||||
pub const CLIENT_TIMEOUT: u64 = 30;
|
||||
|
||||
/// The timeout for the Send client used to transfer (upload/download) files.
|
||||
/// Make sure this is big enough, or file uploads will be dropped. `0` to disable.
|
||||
pub const CLIENT_TRANSFER_TIMEOUT: u64 = 24 * 60 * 60;
|
||||
|
||||
/// The default desired version to select for the server API.
|
||||
pub const API_VERSION_DESIRED_DEFAULT: DesiredVersion = DesiredVersion::Assume(API_VERSION_ASSUME);
|
||||
|
||||
/// The default server API version to assume when it could not be determined.
|
||||
pub const API_VERSION_ASSUME: Version = Version::V2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue