From 944ba25996104098489bc4045ce45eb6519f7ddb Mon Sep 17 00:00:00 2001 From: gmallard Date: Sat, 9 Jul 2016 14:35:43 -0400 Subject: [PATCH] Remove PERSISTENT from environment valiables: - It belongs in the primary stompngo/senv library. - It should be uses consistently throughout the examples. --- sngecomm/environment.go | 9 --------- sngecomm/environment_test.go | 5 ----- version.go | 2 +- 3 files changed, 1 insertion(+), 15 deletions(-) diff --git a/sngecomm/environment.go b/sngecomm/environment.go index 8190125..2af29c2 100644 --- a/sngecomm/environment.go +++ b/sngecomm/environment.go @@ -168,15 +168,6 @@ func SendWait() bool { return false } -// True if persistent messages are desired. -func Persistent() bool { - f := os.Getenv("STOMP_PERSISTENT") - if f == "" { - return false - } - return true -} - // True if max procs are to be set func SetMAXPROCS() bool { f := os.Getenv("STOMP_SETMAXPROCS") diff --git a/sngecomm/environment_test.go b/sngecomm/environment_test.go index ec3f973..17ab5ef 100644 --- a/sngecomm/environment_test.go +++ b/sngecomm/environment_test.go @@ -69,11 +69,6 @@ func TestEnvironmentDefaults(t *testing.T) { t.Errorf("sngecomm SendWait, expected [%t], got [%t]\n", true, b) } // - b = Persistent() - if b { - t.Errorf("sngecomm Persistent, expected [%t], got [%t]\n", false, b) - } - // b = SetMAXPROCS() if b { t.Errorf("sngecomm SetMAXPROCS, expected [%t], got [%t]\n", false, b) diff --git a/version.go b/version.go index c354171..5bfe0d6 100644 --- a/version.go +++ b/version.go @@ -32,7 +32,7 @@ var ( pref = "v" // Prefix major = "1" // Major minor = "0" // Minor - patch = "1.plvl.017" // Patch + patch = "1.plvl.018" // Patch ) func main() { -- 2.11.4.GIT