[core] Do not pass uv_loop_t around
This should be abstracted by util::RunLoop
This commit is contained in:
committed by
John Firebaugh
parent
2eb0203bf4
commit
36581f3d30
@@ -16,7 +16,6 @@
|
||||
#include <mbgl/storage/file_source.hpp>
|
||||
#include <mbgl/style/style_layer.hpp>
|
||||
#include <mbgl/platform/log.hpp>
|
||||
#include <mbgl/util/uv_detail.hpp>
|
||||
#include <mbgl/util/std.hpp>
|
||||
#include <mbgl/util/token.hpp>
|
||||
#include <mbgl/util/string.hpp>
|
||||
@@ -148,7 +147,7 @@ void Source::load() {
|
||||
}
|
||||
|
||||
FileSource* fs = util::ThreadContext::getFileSource();
|
||||
req = fs->request({ Resource::Kind::Source, info.url }, util::RunLoop::getLoop(), [this](const Response &res) {
|
||||
req = fs->request({ Resource::Kind::Source, info.url }, [this](const Response &res) {
|
||||
if (res.stale) {
|
||||
// Only handle fresh responses.
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user