Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lihuiba committed Dec 21, 2023
1 parent 5eb9397 commit 11b5323
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion common/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class Defer
T m_func;
};

template<typename T> __INLINE__
template<typename T> __FORCE_INLINE__
Defer<T> make_defer(T func) { return Defer<T>(func); }

#define _CONCAT_(a, b) a##b
Expand Down
4 changes: 1 addition & 3 deletions net/http/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ class ClientImpl : public Client {
CommonHeaders<> m_common_headers;
ICookieJar *m_cookie_jar;
ClientImpl(ICookieJar *cookie_jar, TLSContext *tls_ctx) :
m_cookie_jar(cookie_jar),
m_dialer(tls_ctx) {
}
m_dialer(tls_ctx), m_cookie_jar(cookie_jar) { }

using SocketStream_ptr = std::unique_ptr<ISocketStream>;
int redirect(Operation* op) {
Expand Down
3 changes: 3 additions & 0 deletions rpc/test/test-rpc-message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ TEST(rpc, variable_length_serialization) {
VariableLengthMessage m_send;
m_send.a = 1;
m_send.b.assign(send_string);
asm volatile ("" : "+r"(m_send.b._ptr), "+r"(m_send.b._len));

// LOG_DEBUG(VALUE(m_send.b._ptr), VALUE(m_send.b._len));

photon::rpc::SerializerIOV s_send;
s_send.serialize(m_send);
Expand Down

0 comments on commit 11b5323

Please sign in to comment.