Skip to content

Commit

Permalink
Use the Request's privateContainer to store the options
Browse files Browse the repository at this point in the history
  • Loading branch information
vzsg committed Feb 22, 2019
1 parent b396ecb commit e3f271f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/CurlyClient/CurlyClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ private extension CURLRequest {
return
}

if let storage = try? req.make(CurlyOptionStorage.self) {
if let storage = req.storage {
storage.options.forEach {
$0.curlOption.forEach { self.options.append($0) }
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/CurlyClient/CurlyOption+Private.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class CurlyOptionStorage: Service {
extension Request {
var storage: CurlyOptionStorage? {
get {
return try? make(CurlyOptionStorage.self)
return try? privateContainer.make(CurlyOptionStorage.self)
}
}
}
Expand Down

0 comments on commit e3f271f

Please sign in to comment.