payload: {"action":"created","comment":{"url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/comments/337774277","pull_request_review_id":305539204,"id":337774277,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMzNzc3NDI3Nw==","diff_hunk":"@@ -20,19 +20,30 @@ public class MongoDbTimeoutStorage : IStoreTimeouts\n         const string SagaIdProperty = \"saga_id\";\n         const string DataProperty = \"data\";\n         const string IdProperty = \"_id\";\n+        const string DueLockProperty = \"due_lock\";\n+        const double DefaultLockTimeOffsetInSeconds = 1.0;\n         readonly IMongoCollection<BsonDocument> collection;\n+        readonly TimeSpan _lockTimeoutsOffset;\n \n         /// <summary>\n         /// Constructs the timeout storage, connecting to the Mongo database pointed to by the given connection string,\n-        /// storing the timeouts in the given collection\n+        /// storing the timeouts in the given collection with specified lockTimeoutsOffset\n         /// </summary>\n-        public MongoDbTimeoutStorage(string connectionString, string collectionName)\n+        public MongoDbTimeoutStorage(string connectionString, string collectionName, TimeSpan? lockTimeoutsOffset = null)\n         {\n+            if (lockTimeoutsOffset == null)\n+                lockTimeoutsOffset = TimeSpan.FromSeconds(DefaultLockTimeOffsetInSeconds);","path":"Rebus.MongoDb2/MongoDbTimeoutStorage.cs","position":null,"original_position":18,"commit_id":"cb03357eb893b44bf606fcddde4b19cac6626f9f","original_commit_id":"76492f0085781ba385db3052761d9a399185ed54","user":{"login":"raulmola","id":31626405,"node_id":"MDQ6VXNlcjMxNjI2NDA1","avatar_url":"https://avatars1.githubusercontent.com/u/31626405?v=4","gravatar_id":"","url":"https://api.github.com/users/raulmola","html_url":"https://github.com/raulmola","followers_url":"https://api.github.com/users/raulmola/followers","following_url":"https://api.github.com/users/raulmola/following{/other_user}","gists_url":"https://api.github.com/users/raulmola/gists{/gist_id}","starred_url":"https://api.github.com/users/raulmola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulmola/subscriptions","organizations_url":"https://api.github.com/users/raulmola/orgs","repos_url":"https://api.github.com/users/raulmola/repos","events_url":"https://api.github.com/users/raulmola/events{/privacy}","received_events_url":"https://api.github.com/users/raulmola/received_events","type":"User","site_admin":false},"body":"I'll declare it as a TimeSpan","created_at":"2019-10-22T22:13:11Z","updated_at":"2019-10-22T22:13:11Z","html_url":"https://github.com/evicertia/Rebus.MongoDb2/pull/3#discussion_r337774277","pull_request_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/comments/337774277"},"html":{"href":"https://github.com/evicertia/Rebus.MongoDb2/pull/3#discussion_r337774277"},"pull_request":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/3"}},"in_reply_to_id":337244022},"pull_request":{"url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/3","id":330600868,"node_id":"MDExOlB1bGxSZXF1ZXN0MzMwNjAwODY4","html_url":"https://github.com/evicertia/Rebus.MongoDb2/pull/3","diff_url":"https://github.com/evicertia/Rebus.MongoDb2/pull/3.diff","patch_url":"https://github.com/evicertia/Rebus.MongoDb2/pull/3.patch","issue_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/issues/3","number":3,"state":"open","locked":false,"title":"Fix dupe timeouts using FindAndUpdate and basic queue mgmt (locking f…","user":{"login":"raulmola","id":31626405,"node_id":"MDQ6VXNlcjMxNjI2NDA1","avatar_url":"https://avatars1.githubusercontent.com/u/31626405?v=4","gravatar_id":"","url":"https://api.github.com/users/raulmola","html_url":"https://github.com/raulmola","followers_url":"https://api.github.com/users/raulmola/followers","following_url":"https://api.github.com/users/raulmola/following{/other_user}","gists_url":"https://api.github.com/users/raulmola/gists{/gist_id}","starred_url":"https://api.github.com/users/raulmola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulmola/subscriptions","organizations_url":"https://api.github.com/users/raulmola/orgs","repos_url":"https://api.github.com/users/raulmola/repos","events_url":"https://api.github.com/users/raulmola/events{/privacy}","received_events_url":"https://api.github.com/users/raulmola/received_events","type":"User","site_admin":false},"body":"…ired timeouts with a due_lock property)","created_at":"2019-10-21T18:29:41Z","updated_at":"2019-10-22T22:13:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"51a7fbba182dd631f662c8ae7e0423b8ce02c5ff","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/3/commits","review_comments_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/3/comments","review_comment_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/issues/3/comments","statuses_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/statuses/cb03357eb893b44bf606fcddde4b19cac6626f9f","head":{"label":"raulmola:rcorvillo/fix-dupe-timeouts-with-findandupdate-transactionality","ref":"rcorvillo/fix-dupe-timeouts-with-findandupdate-transactionality","sha":"cb03357eb893b44bf606fcddde4b19cac6626f9f","user":{"login":"raulmola","id":31626405,"node_id":"MDQ6VXNlcjMxNjI2NDA1","avatar_url":"https://avatars1.githubusercontent.com/u/31626405?v=4","gravatar_id":"","url":"https://api.github.com/users/raulmola","html_url":"https://github.com/raulmola","followers_url":"https://api.github.com/users/raulmola/followers","following_url":"https://api.github.com/users/raulmola/following{/other_user}","gists_url":"https://api.github.com/users/raulmola/gists{/gist_id}","starred_url":"https://api.github.com/users/raulmola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulmola/subscriptions","organizations_url":"https://api.github.com/users/raulmola/orgs","repos_url":"https://api.github.com/users/raulmola/repos","events_url":"https://api.github.com/users/raulmola/events{/privacy}","received_events_url":"https://api.github.com/users/raulmola/received_events","type":"User","site_admin":false},"repo":{"id":213639295,"node_id":"MDEwOlJlcG9zaXRvcnkyMTM2MzkyOTU=","name":"Rebus.MongoDb2","full_name":"raulmola/Rebus.MongoDb2","private":false,"owner":{"login":"raulmola","id":31626405,"node_id":"MDQ6VXNlcjMxNjI2NDA1","avatar_url":"https://avatars1.githubusercontent.com/u/31626405?v=4","gravatar_id":"","url":"https://api.github.com/users/raulmola","html_url":"https://github.com/raulmola","followers_url":"https://api.github.com/users/raulmola/followers","following_url":"https://api.github.com/users/raulmola/following{/other_user}","gists_url":"https://api.github.com/users/raulmola/gists{/gist_id}","starred_url":"https://api.github.com/users/raulmola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raulmola/subscriptions","organizations_url":"https://api.github.com/users/raulmola/orgs","repos_url":"https://api.github.com/users/raulmola/repos","events_url":"https://api.github.com/users/raulmola/events{/privacy}","received_events_url":"https://api.github.com/users/raulmola/received_events","type":"User","site_admin":false},"html_url":"https://github.com/raulmola/Rebus.MongoDb2","description":"MongoDB saga persister and subscription storage using mongodb csharp client v2+","fork":true,"url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2","forks_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/forks","keys_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/teams","hooks_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/hooks","issue_events_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/issues/events{/number}","events_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/events","assignees_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/assignees{/user}","branches_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/branches{/branch}","tags_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/tags","blobs_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/git/refs{/sha}","trees_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/statuses/{sha}","languages_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/languages","stargazers_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/stargazers","contributors_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/contributors","subscribers_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/subscribers","subscription_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/subscription","commits_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/commits{/sha}","git_commits_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/git/commits{/sha}","comments_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/comments{/number}","issue_comment_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/issues/comments{/number}","contents_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/contents/{+path}","compare_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/merges","archive_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/downloads","issues_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/issues{/number}","pulls_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/pulls{/number}","milestones_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/milestones{/number}","notifications_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/labels{/name}","releases_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/releases{/id}","deployments_url":"https://api.github.com/repos/raulmola/Rebus.MongoDb2/deployments","created_at":"2019-10-08T12:42:20Z","updated_at":"2019-10-08T12:42:21Z","pushed_at":"2019-10-22T21:51:21Z","git_url":"git://github.com/raulmola/Rebus.MongoDb2.git","ssh_url":"git@github.com:raulmola/Rebus.MongoDb2.git","clone_url":"https://github.com/raulmola/Rebus.MongoDb2.git","svn_url":"https://github.com/raulmola/Rebus.MongoDb2","homepage":null,"size":4799,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"evicertia:master","ref":"master","sha":"0b701f5a10d13316a4401f8a8944e45e9bbb2368","user":{"login":"evicertia","id":9302167,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkzMDIxNjc=","avatar_url":"https://avatars1.githubusercontent.com/u/9302167?v=4","gravatar_id":"","url":"https://api.github.com/users/evicertia","html_url":"https://github.com/evicertia","followers_url":"https://api.github.com/users/evicertia/followers","following_url":"https://api.github.com/users/evicertia/following{/other_user}","gists_url":"https://api.github.com/users/evicertia/gists{/gist_id}","starred_url":"https://api.github.com/users/evicertia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evicertia/subscriptions","organizations_url":"https://api.github.com/users/evicertia/orgs","repos_url":"https://api.github.com/users/evicertia/repos","events_url":"https://api.github.com/users/evicertia/events{/privacy}","received_events_url":"https://api.github.com/users/evicertia/received_events","type":"Organization","site_admin":false},"repo":{"id":162636733,"node_id":"MDEwOlJlcG9zaXRvcnkxNjI2MzY3MzM=","name":"Rebus.MongoDb2","full_name":"evicertia/Rebus.MongoDb2","private":false,"owner":{"login":"evicertia","id":9302167,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkzMDIxNjc=","avatar_url":"https://avatars1.githubusercontent.com/u/9302167?v=4","gravatar_id":"","url":"https://api.github.com/users/evicertia","html_url":"https://github.com/evicertia","followers_url":"https://api.github.com/users/evicertia/followers","following_url":"https://api.github.com/users/evicertia/following{/other_user}","gists_url":"https://api.github.com/users/evicertia/gists{/gist_id}","starred_url":"https://api.github.com/users/evicertia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evicertia/subscriptions","organizations_url":"https://api.github.com/users/evicertia/orgs","repos_url":"https://api.github.com/users/evicertia/repos","events_url":"https://api.github.com/users/evicertia/events{/privacy}","received_events_url":"https://api.github.com/users/evicertia/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/evicertia/Rebus.MongoDb2","description":"MongoDB saga persister and subscription storage using mongodb csharp client v2+","fork":false,"url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2","forks_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/forks","keys_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/teams","hooks_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/hooks","issue_events_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/issues/events{/number}","events_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/events","assignees_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/assignees{/user}","branches_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/branches{/branch}","tags_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/tags","blobs_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/git/refs{/sha}","trees_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/statuses/{sha}","languages_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/languages","stargazers_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/stargazers","contributors_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/contributors","subscribers_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/subscribers","subscription_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/subscription","commits_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/commits{/sha}","git_commits_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/git/commits{/sha}","comments_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/comments{/number}","issue_comment_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/issues/comments{/number}","contents_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/contents/{+path}","compare_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/merges","archive_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/downloads","issues_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/issues{/number}","pulls_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls{/number}","milestones_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/milestones{/number}","notifications_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/labels{/name}","releases_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/releases{/id}","deployments_url":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/deployments","created_at":"2018-12-20T22:15:33Z","updated_at":"2019-01-11T15:31:48Z","pushed_at":"2019-10-22T21:51:22Z","git_url":"git://github.com/evicertia/Rebus.MongoDb2.git","ssh_url":"git@github.com:evicertia/Rebus.MongoDb2.git","clone_url":"https://github.com/evicertia/Rebus.MongoDb2.git","svn_url":"https://github.com/evicertia/Rebus.MongoDb2","homepage":null,"size":4985,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/3"},"html":{"href":"https://github.com/evicertia/Rebus.MongoDb2/pull/3"},"issue":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/issues/3"},"comments":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/evicertia/Rebus.MongoDb2/statuses/cb03357eb893b44bf606fcddde4b19cac6626f9f"}},"author_association":"NONE"}}
other: {"actor":{"display_login":"raulmola"}}