types cleanup
This commit is contained in:
@@ -34,7 +34,7 @@ func (h *GrainHandler) IsHealthy() bool {
|
||||
return len(h.pool.grains) < h.pool.PoolSize
|
||||
}
|
||||
|
||||
func (h *GrainHandler) RemoteHandleMessageHandler(id CartId, data []byte) (uint32, []byte, error) {
|
||||
func (h *GrainHandler) RemoteHandleMessageHandler(id CartId, data []byte) (CartMessage, []byte, error) {
|
||||
var msg Message
|
||||
err := ReadMessage(bytes.NewReader(data), &msg)
|
||||
if err != nil {
|
||||
@@ -53,7 +53,7 @@ func (h *GrainHandler) RemoteHandleMessageHandler(id CartId, data []byte) (uint3
|
||||
return RemoteHandleMutationReply, replyData, nil
|
||||
}
|
||||
|
||||
func (h *GrainHandler) RemoteGetStateHandler(id CartId, data []byte) (uint32, []byte, error) {
|
||||
func (h *GrainHandler) RemoteGetStateHandler(id CartId, data []byte) (CartMessage, []byte, error) {
|
||||
reply, err := h.pool.Get(id)
|
||||
if err != nil {
|
||||
return RemoteGetStateReply, nil, err
|
||||
|
||||
Reference in New Issue
Block a user