#ignite-106: Rename var g to ignite in scala examples.

Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/57da35e2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/57da35e2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/57da35e2

Branch: refs/heads/ignite-164
Commit: 57da35e2f8df8381324fb1b195bd5788eef7fd73
Parents: ce1ecce
Author: ivasilinets <vasilinetc....@gmail.com>
Authored: Wed Feb 4 01:42:54 2015 +0300
Committer: ivasilinets <vasilinetc....@gmail.com>
Committed: Wed Feb 4 01:42:54 2015 +0300

----------------------------------------------------------------------
 .../scalar/examples/ScalarCacheAffinityExample2.scala     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/57da35e2/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample2.scala
----------------------------------------------------------------------
diff --git 
a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample2.scala
 
b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample2.scala
index 17b3189..95bf655 100644
--- 
a/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample2.scala
+++ 
b/examples/src/main/scala/org/apache/ignite/scalar/examples/ScalarCacheAffinityExample2.scala
@@ -90,15 +90,15 @@ object ScalarCacheAffinityExample2 {
      * cache is not started on local node. In that case a job which populates
      * the cache will be sent to the node where cache is started.
      *
-     * @param g Grid.
+     * @param ignite Ignite.
      * @param keys Keys to populate.
      */
-    private def populateCache(g: Ignite, keys: Seq[String]) {
-        var prj = g.cluster().forCacheNodes(NAME)
+    private def populateCache(ignite: Ignite, keys: Seq[String]) {
+        var prj = ignite.cluster().forCacheNodes(NAME)
 
         // Give preference to local node.
-        if (prj.nodes().contains(g.cluster().localNode))
-            prj = g.cluster().forLocal()
+        if (prj.nodes().contains(ignite.cluster().localNode))
+            prj = ignite.cluster().forLocal()
 
         // Populate cache on some node (possibly this node)
         // which has cache with given name started.

Reply via email to