12 lines
304 B
C++
12 lines
304 B
C++
#include "v3/include/AsyncLeaseGrantResponse.hpp"
|
|
#include "v3/include/action_constants.hpp"
|
|
|
|
|
|
void etcdv3::AsyncLeaseGrantResponse::ParseResponse(LeaseGrantResponse& resp)
|
|
{
|
|
index = resp.header().revision();
|
|
value.set_lease(resp.id());
|
|
value.set_ttl(resp.ttl());
|
|
error_message = resp.error();
|
|
}
|