This is an automated email from the ASF dual-hosted git repository.

chetanm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-cli.git


The following commit(s) were added to refs/heads/master by this push:
     new d0f5736  Ensure that the pollSince is greater than Activation start 
time (#461)
d0f5736 is described below

commit d0f57365f31cf6ffe3befe5ff4abc2ae4378b5d5
Author: Chetan Mehrotra <[email protected]>
AuthorDate: Thu Oct 17 09:39:27 2019 +0530

    Ensure that the pollSince is greater than Activation start time (#461)
    
    This ensures that poll command does not repeatedly keep on fetching the 
last activation
---
 commands/activation.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/commands/activation.go b/commands/activation.go
index 32aec98..0022016 100644
--- a/commands/activation.go
+++ b/commands/activation.go
@@ -402,7 +402,7 @@ var activationPollCmd = &cobra.Command{
                                        reported[activation.ActivationID] = true
                                }
                                if activation.Start > pollSince {
-                                       pollSince = activation.Start
+                                       pollSince = activation.Start + 1
                                }
                        }
                        time.Sleep(time.Second * 2)

Reply via email to