Browse Source

Rename package to 'flowrate'

pull/1842/head
Maxim Khitrov 11 years ago
parent
commit
6a20af8766
4 changed files with 7 additions and 7 deletions
  1. +3
    -3
      flowrate/flowrate.go
  2. +2
    -2
      flowrate/io.go
  3. +1
    -1
      flowrate/io_test.go
  4. +1
    -1
      flowrate/util.go

flowrate/flowcontrol.go → flowrate/flowrate.go View File


+ 2
- 2
flowrate/io.go View File

@ -2,7 +2,7 @@
// Written by Maxim Khitrov (November 2012) // Written by Maxim Khitrov (November 2012)
// //
package flowcontrol
package flowrate
import ( import (
"errors" "errors"
@ -11,7 +11,7 @@ import (
// ErrLimit is returned by the Writer when a non-blocking write is short due to // ErrLimit is returned by the Writer when a non-blocking write is short due to
// the transfer rate limit. // the transfer rate limit.
var ErrLimit = errors.New("flowcontrol: transfer rate limit exceeded")
var ErrLimit = errors.New("flowrate: flow rate limit exceeded")
// Limiter is implemented by the Reader and Writer to provide a consistent // Limiter is implemented by the Reader and Writer to provide a consistent
// interface for monitoring and controlling data transfer. // interface for monitoring and controlling data transfer.


+ 1
- 1
flowrate/io_test.go View File

@ -2,7 +2,7 @@
// Written by Maxim Khitrov (November 2012) // Written by Maxim Khitrov (November 2012)
// //
package flowcontrol
package flowrate
import ( import (
"bytes" "bytes"


+ 1
- 1
flowrate/util.go View File

@ -2,7 +2,7 @@
// Written by Maxim Khitrov (November 2012) // Written by Maxim Khitrov (November 2012)
// //
package flowcontrol
package flowrate
import ( import (
"math" "math"


Loading…
Cancel
Save