@@ -49,7 +49,7 @@ class Session : public std::enable_shared_from_this<Session> {
4949 stream_->readSome (
5050 *incoming_,
5151 [self = shared_from_this ()](outcome::result<size_t > result) {
52- if (not result) {
52+ if (! result) {
5353 self->close ();
5454 std::cout << self->stream_ ->remotePeerId ().value ().toBase58 ()
5555 << " - closed at reading" << std::endl;
@@ -74,7 +74,7 @@ class Session : public std::enable_shared_from_this<Session> {
7474 stream_,
7575 *buffer,
7676 [self = shared_from_this (), buffer](outcome::result<void > result) {
77- if (not result) {
77+ if (! result) {
7878 self->close ();
7979 std::cout << self->stream_ ->remotePeerId ().value ().toBase58 ()
8080 << " - closed at writting" << std::endl;
@@ -128,7 +128,7 @@ void handleIncomingStream(libp2p::StreamAndProtocol stream_and_protocol) {
128128}
129129
130130void handleOutgoingStream (libp2p::StreamAndProtocolOrError stream_res) {
131- if (not stream_res) {
131+ if (! stream_res) {
132132 fmt::println (
133133 std::cerr, " ! outgoing connection failed: {}" , stream_res.error ());
134134 return ;
@@ -178,7 +178,7 @@ int main(int argc, char *argv[]) {
178178 // Additional logging config for application
179179 logger_config));
180180 auto r = logging_system->configure ();
181- if (not r.message .empty ()) {
181+ if (! r.message .empty ()) {
182182 (r.has_error ? std::cerr : std::cout) << r.message << std::endl;
183183 }
184184 if (r.has_error ) {
@@ -295,7 +295,7 @@ int main(int argc, char *argv[]) {
295295 scheduler.schedule (std::function{find_providers},
296296 kademlia_config.randomWalk .interval );
297297
298- if (not res) {
298+ if (! res) {
299299 fmt::println (std::cerr, " Cannot find providers: {}" , res.error ());
300300 return ;
301301 }
@@ -317,7 +317,7 @@ int main(int argc, char *argv[]) {
317317
318318 post (*io, [&] {
319319 auto listen = host->listen (ma);
320- if (not listen) {
320+ if (! listen) {
321321 fmt::println (std::cerr,
322322 " Cannot listen address {}. Error: {}" ,
323323 ma.getStringAddress (),
0 commit comments