{"action":"created","issue":{"url":"https://api.github.com/repos/vsivsi/meteor-file-collection/issues/59","labels_url":"https://api.github.com/repos/vsivsi/meteor-file-collection/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/vsivsi/meteor-file-collection/issues/59/comments","events_url":"https://api.github.com/repos/vsivsi/meteor-file-collection/issues/59/events","html_url":"https://github.com/vsivsi/meteor-file-collection/issues/59","id":91262087,"number":59,"title":"remove() broken","user":{"login":"timothyarmes","id":1092550,"avatar_url":"https://avatars.githubusercontent.com/u/1092550?v=3","gravatar_id":"","url":"https://api.github.com/users/timothyarmes","html_url":"https://github.com/timothyarmes","followers_url":"https://api.github.com/users/timothyarmes/followers","following_url":"https://api.github.com/users/timothyarmes/following{/other_user}","gists_url":"https://api.github.com/users/timothyarmes/gists{/gist_id}","starred_url":"https://api.github.com/users/timothyarmes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timothyarmes/subscriptions","organizations_url":"https://api.github.com/users/timothyarmes/orgs","repos_url":"https://api.github.com/users/timothyarmes/repos","events_url":"https://api.github.com/users/timothyarmes/events{/privacy}","received_events_url":"https://api.github.com/users/timothyarmes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vsivsi/meteor-file-collection/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-26T14:14:49Z","updated_at":"2015-06-26T17:33:15Z","closed_at":null,"body":"Hi,\r\n\r\nThe remove function appears to be broken. For me it would always return 'null', indicating a time out.\r\n\r\nAfter delving in the depths of the code, down to the locks levels, my understanding of the problem is that the timeout value is always 0, thus resulting  in the time-out event being fired systematically.\r\n\r\nIt seems to me that FileCollection's 'remove' function should be passing the lockOptions though to GridFs's remove function (as you do when creating read and write streams). When I do this in a local version of my code the remove function then works as expected.\r\n"},"comment":{"url":"https://api.github.com/repos/vsivsi/meteor-file-collection/issues/comments/115798696","html_url":"https://github.com/vsivsi/meteor-file-collection/issues/59#issuecomment-115798696","issue_url":"https://api.github.com/repos/vsivsi/meteor-file-collection/issues/59","id":115798696,"user":{"login":"vsivsi","id":428642,"avatar_url":"https://avatars.githubusercontent.com/u/428642?v=3","gravatar_id":"","url":"https://api.github.com/users/vsivsi","html_url":"https://github.com/vsivsi","followers_url":"https://api.github.com/users/vsivsi/followers","following_url":"https://api.github.com/users/vsivsi/following{/other_user}","gists_url":"https://api.github.com/users/vsivsi/gists{/gist_id}","starred_url":"https://api.github.com/users/vsivsi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vsivsi/subscriptions","organizations_url":"https://api.github.com/users/vsivsi/orgs","repos_url":"https://api.github.com/users/vsivsi/repos","events_url":"https://api.github.com/users/vsivsi/events{/privacy}","received_events_url":"https://api.github.com/users/vsivsi/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T17:33:15Z","updated_at":"2015-06-26T17:33:15Z","body":"Okay, I can reproduce this. Suprising this wasn't caught before now. I'm on it."}}