Skip to content

Commit a86dfc8

Browse files
committed
Order DHT static constexpr by number
1 parent b40b5ac commit a86dfc8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/dht/session.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ typedef std::pair<int64_t, CEvent> EventPair;
2929
typedef std::multimap<int, EventPair> EventTypeMap;
3030
typedef std::map<std::string, CMutableGetEvent> DHTGetEventMap;
3131

32-
static constexpr int DHT_GET_ALERT_TYPE_CODE = 75;
33-
static constexpr int DHT_PUT_ALERT_TYPE_CODE = 76;
3432
static constexpr int DHT_BOOTSTRAP_ALERT_TYPE_CODE = 62;
35-
static constexpr int DHT_STATS_ALERT_TYPE_CODE = 83;
3633
static constexpr int STATS_ALERT_TYPE_CODE = 70;
3734
static constexpr int DHT_ERROR_ALERT_TYPE_CODE = 73;
35+
static constexpr int DHT_GET_ALERT_TYPE_CODE = 75;
36+
static constexpr int DHT_PUT_ALERT_TYPE_CODE = 76;
37+
static constexpr int DHT_STATS_ALERT_TYPE_CODE = 83;
38+
3839
static constexpr int64_t DHT_RECORD_LOCK_SECONDS = 16;
3940
static constexpr uint32_t DHT_KEEP_PUT_BUFFER_SECONDS = 300;
4041

0 commit comments

Comments
 (0)