lib/nfs/Connection: pass server and export_name as std::string_view

This commit is contained in:
Max Kellermann
2024-05-06 16:54:46 +02:00
parent 028693c380
commit 2b0275a1c8
7 changed files with 25 additions and 27 deletions

View File

@@ -141,8 +141,7 @@ private:
assert(state != State::READY);
assert(GetEventLoop().IsInside());
connection = &nfs_get_connection(server.c_str(),
export_name.c_str());
connection = &nfs_get_connection(server, export_name);
connection->AddLease(*this);
SetState(State::CONNECTING);