@@ -26,9 +26,6 @@ pub trait Access: Sync + Send {
2626/// An association-key, used for associating an existing canister to an ID on a network
2727#[ derive( Clone , Debug , PartialEq , Eq , Hash , Serialize , Deserialize ) ]
2828pub struct Key {
29- /// Network name
30- pub network : String ,
31-
3229 /// Environment name
3330 pub environment : String ,
3431
@@ -46,8 +43,8 @@ pub enum RegisterError {
4643 RegisterLoadStore { source : json:: Error } ,
4744
4845 #[ snafu( display(
49- "canister '{}' in environment '{}', associated with network '{}' is already registered with id '{id}'" ,
50- key. canister, key. environment, key . network ,
46+ "canister '{}' in environment '{}' is already registered with id '{id}'" ,
47+ key. canister, key. environment,
5148 ) ) ]
5249 AlreadyRegistered { key : Key , id : Principal } ,
5350
@@ -61,8 +58,8 @@ pub enum LookupIdError {
6158 LookupLoadStore { source : json:: Error } ,
6259
6360 #[ snafu( display(
64- "could not find ID for canister '{}' in environment '{}', associated with network '{}' " ,
65- key. canister, key. environment, key . network
61+ "could not find ID for canister '{}' in environment '{}'" ,
62+ key. canister, key. environment
6663 ) ) ]
6764 IdNotFound { key : Key } ,
6865
0 commit comments