Skip to content

Instantly share code, notes, and snippets.

@kelseyhightower
Created October 26, 2013 17:01
Show Gist options
  • Save kelseyhightower/7171916 to your computer and use it in GitHub Desktop.
Save kelseyhightower/7171916 to your computer and use it in GitHub Desktop.
Testing config etcd branch
$ go get
# github.com/coreos/etcd/store
store/compare_and_swap_command.go:11: cannot use CompareAndSwapCommand literal (type *CompareAndSwapCommand) as type raft.Command in function argument:
*CompareAndSwapCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
store/create_command.go:10: cannot use CreateCommand literal (type *CreateCommand) as type raft.Command in function argument:
*CreateCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
store/delete_command.go:9: cannot use DeleteCommand literal (type *DeleteCommand) as type raft.Command in function argument:
*DeleteCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
store/set_command.go:10: cannot use SetCommand literal (type *SetCommand) as type raft.Command in function argument:
*SetCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
store/update_command.go:10: cannot use UpdateCommand literal (type *UpdateCommand) as type raft.Command in function argument:
*UpdateCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
Macintosh:etcd kelseyhightower$ go build
# github.com/coreos/etcd/store
store/compare_and_swap_command.go:11: cannot use CompareAndSwapCommand literal (type *CompareAndSwapCommand) as type raft.Command in function argument:
*CompareAndSwapCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
store/create_command.go:10: cannot use CreateCommand literal (type *CreateCommand) as type raft.Command in function argument:
*CreateCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
store/delete_command.go:9: cannot use DeleteCommand literal (type *DeleteCommand) as type raft.Command in function argument:
*DeleteCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
store/set_command.go:10: cannot use SetCommand literal (type *SetCommand) as type raft.Command in function argument:
*SetCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
store/update_command.go:10: cannot use UpdateCommand literal (type *UpdateCommand) as type raft.Command in function argument:
*UpdateCommand does not implement raft.Command (wrong type for Apply method)
have Apply(raft.Server) (interface {}, error)
want Apply(*raft.Server) (interface {}, error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment