)]}'
{
  "commit": "922cf2a7f80f934c6151fdf6310e1d7741f536a1",
  "tree": "f6c07d37346cd7e04934da6eba6fdbb4fcb7b9a9",
  "parents": [
    "8b0d5410fdf9fa84a53183359f6438ed24906338"
  ],
  "author": {
    "name": "sushantsusan",
    "email": "sushantsusan@google.com",
    "time": "Fri Jul 24 00:11:31 2026"
  },
  "committer": {
    "name": "sushantsusan",
    "email": "sushantsusan@google.com",
    "time": "Fri Jul 24 00:25:56 2026"
  },
  "message": "refactor(bigtable): 1x heartbeat + drop `active :\u003d 1` code smell\n\nTwo follow-ups after the java-bigtable heartbeat cross-check:\n\n1) handleSessionParameters: drop 3x multiplier on nextHeartbeatDeadline\n   (already done in resetHeartbeatDeadline in the prior PR-2 commit).\n   Now 1 * interval, matching Java\u0027s SessionImpl.java:440 which sets\n   nextHeartbeat \u003d now + heartbeatInterval on every reset. Wake-comment\n   updated to reflect the new arithmetic.\n\n2) heartBeatLoop:\n   - Delete the `active :\u003d 1 // multiplex\u003d1; kept as %d so a future \u003e1\n     stays greppable` code smell. Inline `1` was documenting itself;\n     the variable existed only for its comment. Drop it — when\n     multiplex \u003e 1 lands, the caller will read `s.activeVRPCCount()`\n     (or similar), not this stale scaffolding.\n   - `lastFrameAge \u003d interval - remaining` (was `3*interval - remaining`)\n     to reflect the new 1x deadline.\n   - Debugf/recordEvent format strings drop the `in_flight\u003d%d` field\n     that was carrying the constant `1`.\n\nTest adjustments:\n- TestHandleSessionParameters_UpdatesIntervalAndDeadline: expect\n  deadline ~\u003d before+interval (1x) instead of before+3*interval.\n- TestHeartBeatLoop_HeartbeatsKeepInflightVRPCAlive: seed deadline\n  at now+30ms (1x) instead of now+90ms (was 3x).\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "255a7949b4b7835dbea48b37021b012a5b09572d",
      "old_mode": 33188,
      "old_path": "bigtable/internal/transport/session_lifecycle.go",
      "new_id": "05917747f9433d07172062864cb507b25c75ea66",
      "new_mode": 33188,
      "new_path": "bigtable/internal/transport/session_lifecycle.go"
    },
    {
      "type": "modify",
      "old_id": "7d3a41c3d54e0ffb2da1c23e8f830527ab44a3d4",
      "old_mode": 33188,
      "old_path": "bigtable/internal/transport/session_lifecycle_test.go",
      "new_id": "3d1aa49b1fcbc5ec0d9376ece8289c1875c8f7c7",
      "new_mode": 33188,
      "new_path": "bigtable/internal/transport/session_lifecycle_test.go"
    }
  ]
}
