Remove #include

This commit is contained in:
Eelco Dolstra 2019-11-06 17:30:48 +01:00
parent f5b7991e59
commit 04bf9acd22
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
2 changed files with 8 additions and 4 deletions

View File

@ -34,6 +34,10 @@ DownloadSettings downloadSettings;
static GlobalConfig::Register r1(&downloadSettings);
CachedDownloadRequest::CachedDownloadRequest(const std::string & uri)
: uri(uri), ttl(settings.tarballTtl)
{ }
std::string resolveUri(const std::string & uri)
{
if (uri.compare(0, 8, "channel:") == 0)

View File

@ -2,7 +2,7 @@
#include "types.hh"
#include "hash.hh"
#include "globals.hh"
#include "config.hh"
#include <string>
#include <future>
@ -71,10 +71,10 @@ struct CachedDownloadRequest
bool unpack = false;
std::string name;
Hash expectedHash;
unsigned int ttl = settings.tarballTtl;
unsigned int ttl;
CachedDownloadRequest(const std::string & uri)
: uri(uri) { }
CachedDownloadRequest(const std::string & uri);
CachedDownloadRequest() = delete;
};
struct CachedDownloadResult