Skip to content

Commit c8eb33c

Browse files
authored
Merge pull request ceph#61175 from ronen-fr/wip-rf-nvme-this
mon/nvme: fix unused lambda capture warnings Reviewed-by: Radoslaw Zarzynski <[email protected]> Reviewed-by: baum <[email protected]>
2 parents fcdd4f7 + edb0321 commit c8eb33c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/nvmeof/NVMeofGwMonitorClient.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,12 @@ int NVMeofGwMonitorClient::init()
151151

152152
// We must register our config callback before calling init(), so
153153
// that we see the initial configuration message
154-
monc.register_config_callback([this](const std::string &k, const std::string &v){
154+
monc.register_config_callback([](const std::string &k, const std::string &v){
155155
// leaving this for debugging purposes
156156
dout(10) << "nvmeof config_callback: " << k << " : " << v << dendl;
157-
158157
return false;
159158
});
160-
monc.register_config_notify_callback([this]() {
159+
monc.register_config_notify_callback([]() {
161160
dout(4) << "nvmeof monc config notify callback" << dendl;
162161
});
163162
dout(4) << "nvmeof Registered monc callback" << dendl;

0 commit comments

Comments
 (0)