File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,7 @@ configuration "with_openssl" {
15
15
versions "hasOpenssl"
16
16
dependency "openssl" version="~>1.1.4+1.0.1g"
17
17
lflags "-L/usr/local/opt/openssl/lib"
18
+ }
19
+ configuration "without_tls" {
20
+ platforms "osx" "windows" "linux"
18
21
}
Original file line number Diff line number Diff line change @@ -128,9 +128,7 @@ Loop defaultLoop() {
128
128
} else version (hasSecurity) {
129
129
return Promise! TlsContext.resolved(TlsContext.init);
130
130
} else {
131
- auto r = new Promise! TlsContext;
132
- r.reject(new Exception (" TLS not supported" ));
133
- return r;
131
+ return Promise! TlsContext.rejected(new Exception (" TLS not supported" ));
134
132
}
135
133
}
136
134
@@ -156,9 +154,7 @@ Loop defaultLoop() {
156
154
.then! Stream (() => r);
157
155
});
158
156
} else {
159
- auto r = new Promise! Stream ;
160
- r.reject(new Exception (" TLS not supported" ));
161
- return r;
157
+ return Promise! Stream .rejected(new Exception (" TLS not supported" ));
162
158
}
163
159
}
164
160
You can’t perform that action at this time.
0 commit comments