Skip to content

Commit

Permalink
ci: fix up test-docs-examples
Browse files Browse the repository at this point in the history
  • Loading branch information
braindigitalis committed Sep 14, 2023
1 parent 1a04bbb commit d548f49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-docs-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
CXX: g++-12

- name: Build Project
run: cd build && make -j2 && sudo make install
run: cd build && make -j32 && sudo make install

- name: Test compile examples
run: cd docpages/example_code && mkdir build && cd build && cmake .. && make -j2
Expand Down
4 changes: 2 additions & 2 deletions docpages/example_code/mp3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ int main(int argc, char const *argv[])
counter += buffer_size;
totalBytes += done;
}
delete buffer;
delete[] buffer;
mpg123_close(mh);
mpg123_delete(mh);

/* Setup the bot */
dpp::cluster bot("token");

bot.on_log(dpp::utility::cout_logger());
bot.on_log(dpp::utility::cout_logger());

/* The event is fired when someone issues your commands */
bot.on_slashcommand([&bot, &pcmdata](const dpp::slashcommand_t& event) {
Expand Down

0 comments on commit d548f49

Please sign in to comment.