Skip to content

Commit 6f23597

Browse files
committed
Review feedback
Signed-off-by: Otto van der Schaaf <[email protected]>
1 parent 88f2e03 commit 6f23597

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

RELEASE_PROCEDURE.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,9 @@
33
- Update [version_history.md](docs/root/version_history.md).
44
- Make sure breaking changes are explicitly called out.
55
- Ensure the release notes are complete.
6-
- Tag the release in git using the current version number
6+
- Tag the release in git using the current version number:
7+
```bash
8+
git tag -a "v0.3" -m "Release v0.3"
9+
git push origin v0.3
10+
```
711
- Bump `MAJOR_VERSION` / `MINOR_VERSION` in [version.h](include/nighthawk/common/version.h) to the next version.

include/nighthawk/common/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Nighthawk {
77
const int MAJOR_VERSION{0};
88
const int MINOR_VERSION{3};
99

10-
class Globals {
10+
class VersionUtils {
1111
public:
1212
static std::string VersionString() { return absl::StrCat(MAJOR_VERSION, ".", MINOR_VERSION); }
1313
};

source/client/options_impl.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ OptionsImpl::OptionsImpl(int argc, const char* const* argv) {
3131
// TODO(oschaaf): Purge the validation we perform here. Most of it should have become
3232
// redundant now that we also perform validation of the resulting proto.
3333
const char* descr = "L7 (HTTP/HTTPS/HTTP2) performance characterization tool.";
34-
TCLAP::CmdLine cmd(descr, ' ', Globals::VersionString()); // NOLINT
34+
TCLAP::CmdLine cmd(descr, ' ', VersionUtils::VersionString()); // NOLINT
3535

3636
// Any default values we pass into TCLAP argument declarations are arbitrary, as we do not rely on
3737
// TCLAP for providing default values. Default values are declared in and sourced from

source/client/output_transform_main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Client {
2424
OutputTransformMain::OutputTransformMain(int argc, const char* const* argv, std::istream& input)
2525
: input_(input) {
2626
const char* descr = "L7 (HTTP/HTTPS/HTTP2) performance characterization transformation tool.";
27-
TCLAP::CmdLine cmd(descr, ' ', Globals::VersionString()); // NOLINT
27+
TCLAP::CmdLine cmd(descr, ' ', VersionUtils::VersionString()); // NOLINT
2828
std::vector<std::string> output_formats = OutputFormatterImpl::getLowerCaseOutputFormats();
2929
TCLAP::ValuesConstraint<std::string> output_formats_allowed(output_formats);
3030
TCLAP::ValueArg<std::string> output_format(

source/client/service_main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Client {
1515

1616
ServiceMain::ServiceMain(int argc, const char** argv) {
1717
const char* descr = "L7 (HTTP/HTTPS/HTTP2) performance characterization tool.";
18-
TCLAP::CmdLine cmd(descr, ' ', Globals::VersionString()); // NOLINT
18+
TCLAP::CmdLine cmd(descr, ' ', VersionUtils::VersionString()); // NOLINT
1919

2020
TCLAP::ValueArg<std::string> listen_arg(
2121
"", "listen",

0 commit comments

Comments
 (0)