mirror of
https://github.com/mattermost/mattermost.git
synced 2026-04-12 20:47:51 -04:00
Combines the following repositories into one: https://github.com/mattermost/mattermost-server https://github.com/mattermost/mattermost-webapp https://github.com/mattermost/focalboard https://github.com/mattermost/mattermost-plugin-playbooks
24 lines
479 B
Go
24 lines
479 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package remotecluster
|
|
|
|
import "fmt"
|
|
|
|
type BufferFullError struct {
|
|
capacity int
|
|
}
|
|
|
|
func NewBufferFullError(capacity int) BufferFullError {
|
|
return BufferFullError{
|
|
capacity: capacity,
|
|
}
|
|
}
|
|
|
|
func (e BufferFullError) Capacity() int {
|
|
return e.capacity
|
|
}
|
|
|
|
func (e BufferFullError) Error() string {
|
|
return fmt.Sprintf("buffer capacity (%d) exceeded", e.capacity)
|
|
}
|