Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
quic: address review feedback
  • Loading branch information
jasnell committed Apr 11, 2023
commit c9b092f1e98604bd58de08fb4d8de0b9699d4c9c
7 changes: 3 additions & 4 deletions src/quic/bindingdata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ QUIC_JS_CALLBACKS(V)
void BindingData::SetCallbacks(const FunctionCallbackInfo<Value>& args) {
auto env = Environment::GetCurrent(args);
auto isolate = env->isolate();
BindingData& state = BindingData::Get(env);
auto& state = BindingData::Get(env);
CHECK(args[0]->IsObject());
Local<Object> obj = args[0].As<Object>();

Expand All @@ -161,10 +161,9 @@ void BindingData::SetCallbacks(const FunctionCallbackInfo<Value>& args) {
#undef V
}

void BindingData::FlushPacketFreelist(
const v8::FunctionCallbackInfo<v8::Value>& args) {
void BindingData::FlushPacketFreelist(const FunctionCallbackInfo<Value>& args) {
auto env = Environment::GetCurrent(args);
BindingData& state = BindingData::Get(env);
auto& state = BindingData::Get(env);
state.packet_freelist.clear();
}

Expand Down
2 changes: 1 addition & 1 deletion src/quic/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ bool SetOption(Environment* env,
return true;
}

// Utilities used to update that stats for Endpoint, Session, and Stream
// Utilities used to update the stats for Endpoint, Session, and Stream
// objects. The stats themselves are maintained in an AliasedStruct within
// each of the relevant classes.

Expand Down
2 changes: 1 addition & 1 deletion src/quic/packet.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ struct Packet::Data final : public MemoryRetainer {
SET_MEMORY_INFO_NAME(Data)
SET_SELF_SIZE(Data)

Data(size_t length, const char* diagnostic_label)
Data(size_t length, std::string_view diagnostic_label)
: diagnostic_label_(diagnostic_label) {
data_.AllocateSufficientStorage(length);
};
Expand Down