Skip to content

Commit 250bf62

Browse files
committed
Fix unmirror
1 parent 98f4305 commit 250bf62

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

lib/clients/drive.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,14 @@ class RemoteHyperdrive {
177177
req.setId(this.id)
178178

179179
const unmirror = (cb) => {
180-
return this.unmirror(cb)
180+
const unmirrorReq = new messages.UnmirrorRequest()
181+
unmirrorReq.setId(this.id)
182+
return maybe(cb, new Promise((resolve, reject) => {
183+
this._client.unmirror(unmirrorReq, toMetadata({ token: this.token }), (err, rsp) => {
184+
if (err) return reject(err)
185+
return resolve(unmirror)
186+
})
187+
}))
181188
}
182189

183190
return maybe(cb, new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)