Skip to content

Commit

Permalink
lease client changes as per pmdbReq args
Browse files Browse the repository at this point in the history
changes in lease client as per pmdbReqArgs
parameters.
parameter name changes in code.
  • Loading branch information
ashwini-8 committed Jan 15, 2024
1 parent 2042641 commit 0c6d784
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions go/pumiceDB/lease/client/leaseClient.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,10 @@ func (clientObj LeaseClient) write(reqBytes *[]byte, rncui string, response *[]b

reqArgs := &pmdbClient.PmdbReqArgs{
Rncui: rncui,
ReqByteArr: *reqBytes,
GetResponse: 1,
ReplySize: &replySize,
Response: response,
}

reqArgs.SetPmdbData(*reqBytes, response, replySize)
err = clientObj.PmdbClientObj.Write(reqArgs)

return err
Expand All @@ -83,10 +81,8 @@ func (clientObj LeaseClient) read(reqBytes *[]byte, rncui string, response *[]by

reqArgs := &pmdbClient.PmdbReqArgs{
Rncui: rncui,
ReqByteArr: *reqBytes,
Response: response,
}

reqArgs.SetPmdbData(*reqBytes, response, -1)
return clientObj.PmdbClientObj.ReadEncoded(reqArgs)
}

Expand Down

0 comments on commit 0c6d784

Please sign in to comment.