diff --git a/config/config_defaults.go b/config/config_defaults.go index 991a464b5..62441f260 100644 --- a/config/config_defaults.go +++ b/config/config_defaults.go @@ -60,7 +60,7 @@ const CGRATES_CFG_JSON = ` "caps": 0, // maximum concurrent request allowed ( 0 to disabled ) "caps_strategy": "*busy", // strategy in case in case of concurrent requests reached "caps_stats_interval": "0", // the interval we sample for caps stats ( 0 to disabled ) - "shutdown_timeout": "1s" // the duration to wait until all services are stoped + "shutdown_timeout": "1s" // the duration to wait until all services are stopped }, diff --git a/cores/server.go b/cores/server.go index 89a1a2ef4..9e53e0f6a 100644 --- a/cores/server.go +++ b/cores/server.go @@ -274,7 +274,7 @@ func (s *Server) ServeBiRPC(addrJSON, addrGOB string, onConn func(birpc.ClientCo } defer lgob.Close() } - <-s.stopbiRPCServer // wait until server is stoped to close the listener + <-s.stopbiRPCServer // wait until server is stopped to close the listener return } @@ -296,7 +296,7 @@ func (s *Server) acceptBiRPC(srv *birpc.BirpcServer, l net.Listener, codecName s return } s.stopbiRPCServer <- struct{}{} - utils.Logger.Crit(fmt.Sprintf("Stoped Bi%s server beacause %s", codecName, err)) + utils.Logger.Crit(fmt.Sprintf("Stopped Bi%s server beacause %s", codecName, err)) return // stop if we get Accept error } go srv.ServeCodec(newCodec(conn, s.caps, s.anz)) diff --git a/data/conf/cgrates/cgrates.json b/data/conf/cgrates/cgrates.json index c85f8c741..feb88ec48 100755 --- a/data/conf/cgrates/cgrates.json +++ b/data/conf/cgrates/cgrates.json @@ -39,7 +39,7 @@ // "caps": 0, // maximum concurrent request allowed ( 0 to disabled ) // "caps_strategy": "*busy", // strategy in case in case of concurrent requests reached // "caps_stats_interval": "0", // the interval we sample for caps stats ( 0 to disabled ) -// "shutdown_timeout": "1s" // the duration to wait until all services are stoped +// "shutdown_timeout": "1s" // the duration to wait until all services are stopped // }, diff --git a/docs/tut_cgrates_usage.rst b/docs/tut_cgrates_usage.rst index 3867eabb6..9f51536f6 100644 --- a/docs/tut_cgrates_usage.rst +++ b/docs/tut_cgrates_usage.rst @@ -54,7 +54,7 @@ Test calls Since the user 1001 is marked as *prepaid* inside the telecom switch, calling between 1001 and 1002 should generate pre-auth and prepaid debits which can be checked with *get_account* command integrated within *cgr-console* tool. Charging will be done based on time of day as described in the tariff plan definition above. -*Note*: An important particularity to note here is the ability of **CGRateS** SessionManager to refund units booked in advance (eg: if debit occurs every 10s and rate increments are set to 1s, the SessionManager will be smart enough to refund pre-booked credits for calls stoped in the middle of debit interval). +*Note*: An important particularity to note here is the ability of **CGRateS** SessionManager to refund units booked in advance (eg: if debit occurs every 10s and rate increments are set to 1s, the SessionManager will be smart enough to refund pre-booked credits for calls stopped in the middle of debit interval). Check that 1001 balance is properly deducted, during the call, and moreover considering that general balance has priority over the shared one debits for this call should take place at first out of general balance. diff --git a/general_tests/redis_cluster_it_test.go b/general_tests/redis_cluster_it_test.go index ee157eabd..f590f8d25 100644 --- a/general_tests/redis_cluster_it_test.go +++ b/general_tests/redis_cluster_it_test.go @@ -49,7 +49,7 @@ import ( * - configure the cluster with the following command: * `./redis-trib.rb create --replicas 1 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005 127.0.0.1:7006` * - * To run the tests you need to specify the `redisCluster` flag and have the redis stoped: + * To run the tests you need to specify the `redisCluster` flag and have the redis stopped: * `go test github.com/cgrates/cgrates/general_tests -tags=integration -dbtype=*mysql -run=TestRedisCluster -redisCluster -v` * * The configuration of the cluster is the following: diff --git a/general_tests/sentinel_it_test.go b/general_tests/sentinel_it_test.go index 456fff417..27e26e799 100644 --- a/general_tests/sentinel_it_test.go +++ b/general_tests/sentinel_it_test.go @@ -67,7 +67,7 @@ var ( // Node2 will be slave of node1 and start at port 16380 // Sentinel1 will be started at port 16381 and will watch Node1 // Sentinel2 will be started at port 16382 and will watch Node1 -// Also make sure that redis process is stoped +// Also make sure that redis process is stopped func TestRedisSentinel(t *testing.T) { if !*redisSentinel { return diff --git a/services/kamailioagent_it_test.go b/services/kamailioagent_it_test.go index 9de2abc72..53f5b62ee 100644 --- a/services/kamailioagent_it_test.go +++ b/services/kamailioagent_it_test.go @@ -94,7 +94,7 @@ func TestKamailioAgentReload(t *testing.T) { t.Fatalf("\nExpected <%+v>, \nReceived <%+v>", nil, err) } time.Sleep(10 * time.Millisecond) //need to switch to gorutine - // the engine should be stoped as we could not connect to kamailio + // the engine should be stopped as we could not connect to kamailio shdChan.CloseOnce() time.Sleep(10 * time.Millisecond)