This commit is contained in:
Derek Collison
2016-06-17 10:09:14 -07:00
parent 67ed61c837
commit fa95bd936b
3 changed files with 4 additions and 2 deletions

View File

@@ -876,6 +876,8 @@ func (c *client) processMsg(msg []byte) {
c.traceMsg(msg)
}
// defintely
// Disallow publish to _SYS.>, these are reserved for internals.
if c.pa.subject[0] == '_' && len(c.pa.subject) > 4 &&
c.pa.subject[1] == 'S' && c.pa.subject[2] == 'Y' &&

View File

@@ -119,7 +119,7 @@ func getCounterArrayData(counter PDH_HCOUNTER) ([]float64, error) {
var bufCount uint32
// Retrieving array data requires two calls, the first which
// requires an adressable empty buffer, and sets size fields.
// requires an addressable empty buffer, and sets size fields.
// The second call returns the data.
initialBuf := make([]PDH_FMT_COUNTERVALUE_ITEM_DOUBLE, 1)
ret := pdhGetFormattedCounterArrayDouble(counter, &bufSize, &bufCount, &initialBuf[0])

View File

@@ -28,7 +28,7 @@ func TestMultipleUserAuth(t *testing.T) {
nc, err := nats.Connect(url)
if err != nil {
t.Fatalf("Expected a succesful connect, got %v\n", err)
t.Fatalf("Expected a successful connect, got %v\n", err)
}
defer nc.Close()