From beca45333ed2139b82f45fbe0d408f36c5f5f984 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjetil=20=C3=98rbekk?= Date: Wed, 25 Apr 2012 10:47:03 +0200 Subject: Fix typo. timout => timeout --- src/main/java/com/orbekk/protobuf/Rpc.java | 4 ++-- src/main/java/com/orbekk/protobuf/RpcChannel.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/orbekk/protobuf/Rpc.java b/src/main/java/com/orbekk/protobuf/Rpc.java index f22bbc3..68528f7 100644 --- a/src/main/java/com/orbekk/protobuf/Rpc.java +++ b/src/main/java/com/orbekk/protobuf/Rpc.java @@ -124,7 +124,7 @@ public class Rpc implements RpcController { } } - public long getTimout() { + public long getTimeout() { return timeoutMillis; } @@ -132,7 +132,7 @@ public class Rpc implements RpcController { * * The default timeout is 0, i.e. never time out. */ - public void setTimout(long milliseconds) { + public void setTimeout(long milliseconds) { timeoutMillis = milliseconds; } diff --git a/src/main/java/com/orbekk/protobuf/RpcChannel.java b/src/main/java/com/orbekk/protobuf/RpcChannel.java index a558228..9c52651 100644 --- a/src/main/java/com/orbekk/protobuf/RpcChannel.java +++ b/src/main/java/com/orbekk/protobuf/RpcChannel.java @@ -218,7 +218,7 @@ public class RpcChannel implements com.google.protobuf.RpcChannel { } private void addTimeoutHandler(RequestMetadata request) { - long timeout = request.rpc.getTimout(); + long timeout = request.rpc.getTimeout(); if (timeout > 0) { timer.schedule(new CancelRequestTask(request.id), timeout); } -- cgit v1.2.3