Skip to content

Commit

Permalink
make clang format happy
Browse files Browse the repository at this point in the history
Signed-off-by: zhaozhao.zz <zhaozhao.zz@alibaba-inc.com>
  • Loading branch information
soloestoy committed Aug 29, 2024
1 parent 439692e commit 78a5d83
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,12 +559,12 @@ dictType objToDictDictType = {
/* Same as objToDictDictType, added some kvstore callbacks, it's used
* for PUBSUB command to track clients subscribing the channels. */
dictType kvstoreChannelDictType = {
dictObjHash, /* hash function */
NULL, /* key dup */
dictObjKeyCompare, /* key compare */
dictObjectDestructor, /* key destructor */
dictDictDestructor, /* val destructor */
NULL, /* allow to expand */
dictObjHash, /* hash function */
NULL, /* key dup */
dictObjKeyCompare, /* key compare */
dictObjectDestructor, /* key destructor */
dictDictDestructor, /* val destructor */
NULL, /* allow to expand */
kvstoreDictRehashingStarted,
kvstoreDictRehashingCompleted,
kvstoreDictMetadataSize,
Expand Down Expand Up @@ -2664,8 +2664,8 @@ void initServer(void) {
* (which has to be kvstore), see pubsubtype.serverPubSubChannels */
server.pubsub_channels = kvstoreCreate(&kvstoreChannelDictType, 0, KVSTORE_ALLOCATE_DICTS_ON_DEMAND);
server.pubsub_patterns = dictCreate(&objToDictDictType);
server.pubsubshard_channels =
kvstoreCreate(&kvstoreChannelDictType, slot_count_bits, KVSTORE_ALLOCATE_DICTS_ON_DEMAND | KVSTORE_FREE_EMPTY_DICTS);
server.pubsubshard_channels = kvstoreCreate(&kvstoreChannelDictType, slot_count_bits,
KVSTORE_ALLOCATE_DICTS_ON_DEMAND | KVSTORE_FREE_EMPTY_DICTS);
server.pubsub_clients = 0;
server.watching_clients = 0;
server.cronloops = 0;
Expand Down

0 comments on commit 78a5d83

Please sign in to comment.