Skip to content

Commit

Permalink
Some manual code changes to make formatted code look prettier
Browse files Browse the repository at this point in the history
Signed-off-by: Mikhail Koviazin <[email protected]>
  • Loading branch information
mkmkme committed Aug 22, 2024
1 parent f827b93 commit 80af13c
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
17 changes: 9 additions & 8 deletions include/valkey/valkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,15 @@ struct valkeySsl;

#define VALKEY_OPT_NONBLOCK 0x01
#define VALKEY_OPT_REUSEADDR 0x02
#define VALKEY_OPT_NOAUTOFREE \
0x04 /* Don't automatically free the async object on a connection failure,
* or other implicit conditions. Only free on an explicit call to
* disconnect() or free() */
#define VALKEY_OPT_NO_PUSH_AUTOFREE \
0x08 /* Don't automatically intercept and free RESP3 PUSH replies. */
#define VALKEY_OPT_NOAUTOFREEREPLIES \
0x10 /* Don't automatically free replies. */
/* Don't automatically free the async object on a connection failure,
* or other implicit conditions. Only free on an explicit call to
* disconnect() or free() */
#define VALKEY_OPT_NOAUTOFREE 0x04

/* Don't automatically intercept and free RESP3 PUSH replies. */
#define VALKEY_OPT_NO_PUSH_AUTOFREE 0x08
/* Don't automatically free replies. */
#define VALKEY_OPT_NOAUTOFREEREPLIES 0x10
#define VALKEY_OPT_PREFER_IPV4 0x20 /* Prefer IPv4 in DNS lookups. */
#define VALKEY_OPT_PREFER_IPV6 0x40 /* Prefer IPv6 in DNS lookups. */
#define VALKEY_OPT_PREFER_IP_UNSPEC \
Expand Down
1 change: 1 addition & 0 deletions include/valkey/valkeycluster_ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#ifndef VALKEYCLUSTER_SSL_H
#define VALKEYCLUSTER_SSL_H

#include "valkey.h"
#include "valkey_ssl.h"
#include "valkeycluster.h"

Expand Down
9 changes: 6 additions & 3 deletions src/async.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,12 @@ static void callbackValDestructor(void *privdata, void *val) {
}

static dictType callbackDict = {
callbackHash, NULL,
callbackValDup, callbackKeyCompare,
callbackKeyDestructor, callbackValDestructor,
.hashFunction = callbackHash,
.keyDup = NULL,
.valDup = callbackValDup,
.keyCompare = callbackKeyCompare,
.keyDestructor = callbackKeyDestructor,
.valDestructor = callbackValDestructor,
};

static valkeyAsyncContext *valkeyAsyncInitialize(valkeyContext *c) {
Expand Down

0 comments on commit 80af13c

Please sign in to comment.