summaryrefslogtreecommitdiff
path: root/pkg/custom.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/custom.go')
-rw-r--r--pkg/custom.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/pkg/custom.go b/pkg/custom.go
index 9ed2bca..acca226 100644
--- a/pkg/custom.go
+++ b/pkg/custom.go
@@ -6,16 +6,11 @@ func init() {
customPromises = make([]*CustomPromise, 0)
}
-type CustomPromiseInterface interface {
- Promise
- Status() Status
-}
-
type CustomPromise struct {
- promise CustomPromiseInterface
+ promise Promise
}
-func MakeCustomPromise(p CustomPromiseInterface) *CustomPromise {
+func MakeCustomPromise(p Promise) *CustomPromise {
return &CustomPromise{
promise: p,
}